Other Parts Discussed in Thread: Z-STACK
extern uint16 AssocCount( byte startRelation, byte endRelation ),请问我已加入两个路由设备到协调器中,通过这个函数获取到他们的短地址,但将两个路由断电一段时间,在协调器里读这个函数,就会丢掉其中一个短地址,请问这是什么原因?
startRelation和endRelation真正的含义是什么?
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.
Other Parts Discussed in Thread: Z-STACK
extern uint16 AssocCount( byte startRelation, byte endRelation ),请问我已加入两个路由设备到协调器中,通过这个函数获取到他们的短地址,但将两个路由断电一段时间,在协调器里读这个函数,就会丢掉其中一个短地址,请问这是什么原因?
startRelation和endRelation真正的含义是什么?
/**************************************************************************************************
* @fn AssocCount()
*
* @brief Counts the number of entries in the device list.
*
* input parameters
*
* @param startRelation - Device relation to start counting at.
* @param endRelation - Device relation to end counting at.
*
* output parameters
*
* None.
*
* @return The number of devices within the relation parameters.
**************************************************************************************************
*/
uint16 AssocCount(uint8 startRelation, uint8 endRelation)
{
uint16 count = 0;
uint8 pBuf[2] = { startRelation, endRelation };
if (SUCCESS == zapUtilReq(MT_UTIL_ASSOC_COUNT, pBuf, NULL))
{
count = BUILD_UINT16(pBuf[0], pBuf[1]);
}
return count;
}