请问一下,绑定过程中,如何设置OutCluster方,与InCluster方
时间:10-02
整理:3721RD
点击:
两个使用如下函数进行绑定
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
您首先需要在以下code内进行注册
#define ZCLSAMPLESW_MAX_INCLUSTERS 2 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_CTRL ZCL_CLUSTER_ID_GEN_LEVEL_CONTROL, #endif 0 };
而后将您注册的IN 和 OUTCluster写入函数ZDP_EndDeviceBindReq内