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: https://riot-os.org/api/group__net__gnrc__netapi.html#gabc41a5d60228a68daa7ef14b0bbb6ff4

Cheers Peter

Hello Peter,

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

Cheers

Neo