两个使用如下函数进行绑定
ZDP_EndDeviceBindReq( dstAddr,
NLME_GetShortAddr(),
GENERICAPP_ENDPOINT,
GENERICAPP_PROFID,
GENERICAPP_MAX_CLUSTERS, (cId_t *)GenericApp_ClusterList,
GENERICAPP_MAX_CLUSTERS,(cId_t *)GenericApp_ClusterList,
0 );
无法理解哪一方是out 哪一方是in
Susan Yang:
您首先需要在以下code内进行注册
#define ZCLSAMPLESW_MAX_INCLUSTERS2 const cId_t zclSampleSw_InClusterList[ZCLSAMPLESW_MAX_INCLUSTERS] = {ZCL_CLUSTER_ID_GEN_BASIC,ZCL_CLUSTER_ID_GEN_IDENTIFY };const cId_t zclSampleSw_OutClusterList[] = {ZCL_CLUSTER_ID_GEN_ON_OFF,ZCL_CLUSTER_ID_GEN_IDENTIFY, #ifdef ZCL_LEVEL_CTRLZCL_CLUSTER_ID_GEN_LEVEL_CONTROL, #endif0 };而后将您注册的IN 和 OUTCluster写入函数ZDP_EndDeviceBindReq内