This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Thread auto switch channel

Hello,

My name is Edward, I am trying to configure a net Thread with auto selection channel, do you have any example about this? 

I have based my development on the simple_coap_server and simple_coap_client examples.

I had tried to call these functions in my code:

   otChannelManagerSetAutoChannelSelectionInterval (thread_ot_instance_get(),60);
   otChannelManagerSetAutoChannelSelectionEnabled(thread_ot_instance_get(),true);

 and I have added this include: 

   #include <openthread/channel_manager.h>

 and this define in  my .emProject

   OPENTHREAD_CONFIG_CHANNEL_MANAGER_ENABLE

But I don´t know if I have to configure something else like a panid, channel...

When I build my code, I have two erros:

 

 Could you help me please?

Thank you in advance.

Parents Reply Children
No Data
Related