对于协调器接收到Device_annce消息,怎么在第一时间区分这个Device_annce的来源是路由器还是终端?
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.
对于协调器接收到Device_annce消息,怎么在第一时间区分这个Device_annce的来源是路由器还是终端?
/** Structure defines the Capabilities Information bit field. */
typedef struct _zstack_capabilityinfo_t
{
/** True if the device is a PAN Coordinator */
bool panCoord;
/** True if the device is a full function device (FFD) */
bool ffd;
/** True if the device is mains powered */
bool mainsPower;
/** True if the device's RX is on when the device is idle */
bool rxOnWhenIdle;
/** True if the device is capable of sending and receiving secured frames
*/
bool security;
} zstack_CapabilityInfo_t;