Hi everyone!
The devices invoked EZMODE with each other , when identity finish
how could we know binding success? is there any flag?
BR!
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.
After received identify query response in ez-mode, it will initiate match descriptor request on the remote node. If the node receives match descriptor response and active clusters match, it means binding success. This is in case EZMODE_ACTION_MATCH_DESC_RSP: of zcl_EZModeAction().
Hi yikai
i want to turn on the LED when the end device(as a target)binding success。
as you said ,it will be in case EZMODE_ACTION_MATCH_DESC_RSP:
so i coding in targe side
/*********************************************************************
* @fn zclSmartplug_ProcessZDOMsgs
*
* @brief Called when this node receives a ZDO/ZDP response.
*
* @param none
*
* @return status
*/
static void zclSmartplug_ProcessZDOMsgs( zdoIncomingMsg_t *pMsg )
{
zclEZMode_ActionData_t data;
ZDO_MatchDescRsp_t *pMatchDescRsp;
// Let EZ-Mode know of the Simple Descriptor Response
if ( pMsg->clusterID == Match_Desc_rsp )
{
pMatchDescRsp = ZDO_ParseEPListRsp( pMsg );
data.pMatchDescRsp = pMatchDescRsp;
zcl_EZModeAction( EZMODE_ACTION_MATCH_DESC_RSP, &data );
osal_mem_free( pMatchDescRsp );
binding_success_LED = TRUE;
}
}
and it could not be working ! it could not set a breakpoint in this function.
but when i change the end device EZMODE data that initiator setting as TRUE
this function was working . and LED will be turned on after binding success.