static cId_t bindingInClusters1[] = { ZCL_CLUSTER_ID_GEN_ON_OFF, ZCL_CLUSTER_ID_CLOSURES_DOOR_LOCK }; #define ZCLSAMPLEDOORLOCK_BINDINGLIST1 (sizeof(bindingInClusters1) / sizeof(bindingInClusters1[0])) AddrType_t dstAddr; endPointDesc_t srcEP; uint8 *buf; uint8 *transID; dstAddr.addr.shortAddr = 0; dstAddr.addrMode=afAddr16Bit; srcEP.endPoint=SAMPLEDOORLOCK_ENDPOINT; srcEP.simpleDesc->EndPoint=SAMPLEDOORLOCK_ENDPOINT; srcEP.simpleDesc->AppProfId=ZCL_HA_PROFILE_ID; srcEP.simpleDesc->AppDeviceId=ZCL_HA_DEVICEID_DOOR_LOCK; srcEP.simpleDesc->AppNumInClusters=ZCLSAMPLEDOORLOCK_BINDINGLIST1; srcEP.simpleDesc->pAppInClusterList=bindingInClusters1; srcEP.simpleDesc->AppNumOutClusters=ZCLSAMPLEDOORLOCK_BINDINGLIST1; srcEP.simpleDesc->pAppOutClusterList=bindingInClusters1; //used in cluster temporarly buf[0]=0x08;//Frame control:command acts across entire profile,not manufacturer specific,command sent from client to //server. buf[1]=0x01;//transaction seq no buf[2]=0x01;//command identifier:Unlock door transID[0]=0x01; AF_DataRequest( &dstAddr, &srcEP, ZCL_CLUSTER_ID_CLOSURES_DOOR_LOCK, 3, buf, transID, AF_DEFAULT_RADIUS,0 );