在Home1.2.2a中,在应用层有注册这样一个端口
static endPointDesc_t SampleApp_TestEp =
{
20, // Test endpoint
&zclSampleApp_TaskID,
(SimpleDescriptionFormat_t *)NULL, // No Simple description for this test endpoint
(afNetworkLatencyReq_t)0 // No Network Latency req
};
像这个端口的simpleDesc和latencyReq都是NULL和0,尤其是simpleDesc居然是NULL,这样注册的端口能正常使用吗?我记得在Zstack2.5.1中,它的simpleDesc是有具体内容的,尤其还会在ClusterList中指定CLUSTERID的。
const SimpleDescriptionFormat_t SampleApp_SimpleDesc =
{
SAMPLEAPP_ENDPOINT, // int Endpoint;
SAMPLEAPP_PROFID, // uint16 AppProfId[2];
SAMPLEAPP_DEVICEID, // uint16 AppDeviceId[2];
SAMPLEAPP_DEVICE_VERSION, // int AppDevVer:4;
SAMPLEAPP_FLAGS, // int AppFlags:4;
SAMPLEAPP_MAX_CLUSTERS, // uint8 AppNumInClusters;
(cId_t *)SampleApp_ClusterList, // uint8 *pAppInClusterList;
SAMPLEAPP_MAX_CLUSTERS, // uint8 AppNumInClusters;
(cId_t *)SampleApp_ClusterList // uint8 *pAppInClusterList;
};
像Home1.2.2a的那种用法,还能在接收方做switch(CLUSTERID)吗,因为在注册端口的时候就没有指定CLUSTERID