如何设置协调器上电不创建网络,收到串口消息后创建网络,并在一段时间后关闭网络。
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
如何设置协调器上电不创建网络,收到串口消息后创建网络,并在一段时间后关闭网络。
您可以预编译HOLD_AUTO_START选项,那么工程就会禁止自动启动ZDApp事件处理循环中的ZDO_NETWORK_INIT事件,也就是上电后不自动调用ZDOInitDevice(),需要通过外部事件,或者用户自己调用这个函数才能组建或加入网络
谢谢,这个函数可以设置组建网络的时间吗? 例如我只需要组建网络两分钟,两分钟后自动关闭网络。是否可以直接给这个函数一个参数。还是说我需要调用其他的函数关闭网络