[riot-devel] Correct way to bring radio module to sleep state

Peter Kietzmann peter.kietzmann at haw-hamburg.de
Thu Mar 16 19:29:53 CET 2017

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:


Am 02.03.2017 um 15:35 schrieb Neo:
> 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
> _______________________________________________
> devel mailing list
> devel at riot-os.org
> https://lists.riot-os.org/mailman/listinfo/devel

Peter Kietzmann

Hamburg University of Applied Sciences
Dept. Informatik, Internet Technologies Group
Berliner Tor 7, 20099 Hamburg, Germany
Fon: +49-40-42875-8426
Web: http://www.haw-hamburg.de/inet

More information about the devel mailing list