两个使用如下函数进行绑定
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
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.
两个使用如下函数进行绑定
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内