Correct way to bring radio module to sleep state

Dear Riot Developers, has anyone an example how to turn a wireless module into sleep state (including network stack?)? What is here the correct way? Which API functions should be used? Thanks a lot! Regards., Neo

Hi Neo,

this should can be done via netapi. Something like this should do:

gnrc_netapi_set(dev, NETOPT_STATE_SLEEP, 0, &set, sizeof(netopt_enable_t)

Also check the netapi doc:

Cheers Peter

Hello Peter,

thanks a lot for this answer. I 'll try it this week!