Hi All
i have a question about the ezmode data of the samplelight and sampleswitch
if ( events & SAMPLELIGHT_START_EZMODE_EVT ) { // Invoke EZ-Mode zclEZMode_InvokeData_t ezModeData; ...
ezModeData.initiator = FALSE; // OnOffLight is a target ezModeData.numActiveOutClusters = 0; ezModeData.pActiveOutClusterIDs = NULL; ezModeData.numActiveInClusters = 0; ezModeData.pActiveOutClusterIDs = NULL; zcl_InvokeEZMode( &ezModeData ); return ( events ^ SAMPLELIGHT_START_EZMODE_EVT ); }
why does ezModeData.numActiveOutClusters and ezModeData.numActiveInClusters of samplelight keep 0
while those parameters of sampleswitch is different with it
and they are OK to using EZMODE to binding each other ?
#ifdef ZCL_EZMODE { zclEZMode_InvokeData_t ezModeData; static uint16 clusterIDs[] = { ZCL_CLUSTER_ID_GEN_ON_OFF }; // only bind on the on/off cluster // Invoke EZ-Mode ezModeData.endpoint = SAMPLESW_ENDPOINT; // endpoint on which to invoke EZ-Mode if ( (zclSampleSw_NwkState == DEV_ZB_COORD) || (zclSampleSw_NwkState == DEV_ROUTER) || (zclSampleSw_NwkState == DEV_END_DEVICE) ) { ezModeData.onNetwork = TRUE; // node is already on the network } else { ezModeData.onNetwork = FALSE; // node is not yet on the network } ezModeData.initiator = TRUE; // OnOffSwitch is an initiator ezModeData.numActiveOutClusters = 1; // active output cluster ezModeData.pActiveOutClusterIDs = clusterIDs; ezModeData.numActiveInClusters = 0; // no active input clusters ezModeData.pActiveInClusterIDs = NULL; zcl_InvokeEZMode( &ezModeData ); ... }
why does smaplelight should not be like below :
ezModeData.initiator = FALSE; // OnOffLight is a target
ezModeData.numActiveOutClusters = 0;
ezModeData.pActiveOutClusterIDs = NULL;
ezModeData.numActiveInClusters = 1;
ezModeData.pActiveOutClusterIDs = clusterIDs;