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

Neo neo at nenaco.de
Sun Mar 19 23:16:38 CET 2017


Hello Peter,

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

Cheers

Neo


On 16.03.2017 19:29, Peter Kietzmann wrote:
> 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
>
> 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
>>
>



More information about the devel mailing list