新版Zigbee 3.0协议栈中,去掉了编译项HOLD_AUTO_START,设备状态devState默认为DEV_HOLD,如下:
3.2.2 ZDO Device Network Startup
By default ZDApp_Init() [in ZDApp.c] starts the device’s startup in a Zigbee network, but an application can override this default behavior. The compilation flag HOLD_AUTO_START is not longer used, the compile flag NV_RESTORE is by default enabled. It is suggested that the user do not use the ZDO interface to commission the device to the network, but instead use the BDB API.
请问:
1.开发手册中建议使用BDB API来实现相应功能,具体是哪个函数呢,找了半天没找到相关的;
2.如果不用BDB API,能否直接更改devState=DEV_INIT,并且手动调用ZDOInitDeviceEx()呢?
VV:
BDB是整个过程都是按照状态机来实现的,你可以参考第一个状态
可以,但是这样就是失去使用3.0 意义了么