#define SampleApp_EndPoint 20 //调试端口
#define AllDeviceCommand_EndPoint 21 //协调器广播使用的端口
#define CoordCommand_EndPoint 22 //协调器发数据使用的端口
#define RouterCommand_EndPoint 23 //路由器发数据使用的端口
#define EndDeviceCommand_EndPoint 24 //终端节点发数据使用的端口
// 调试使用端点注册
SampleApp_EndPoint_epDesc.endPoint = SampleApp_EndPoint;
SampleApp_EndPoint_epDesc.task_id = &zclSampleApp_TaskID;
SampleApp_EndPoint_epDesc.simpleDesc
= (SimpleDescriptionFormat_t *)&SampleApp_SimpleDesc;
SampleApp_EndPoint_epDesc.latencyReq = noLatencyReqs;
afRegister( &SampleApp_EndPoint_epDesc );
// 终端节点端点注册
EndDeviceEndPoint_epDesc.endPoint = EndDeviceCommand_EndPoint;
EndDeviceEndPoint_epDesc.task_id = &zclSampleApp_TaskID;
EndDeviceEndPoint_epDesc.simpleDesc
= (SimpleDescriptionFormat_t *)&EndDevice_SimpleDesc;
EndDeviceEndPoint_epDesc.latencyReq = noLatencyReqs;
afRegister( &EndDeviceEndPoint_epDesc );
// 路由器端点注册
RouterEndPoint_epDesc.endPoint = RouterCommand_EndPoint;
RouterEndPoint_epDesc.task_id = &zclSampleApp_TaskID;
RouterEndPoint_epDesc.simpleDesc
= (SimpleDescriptionFormat_t *)&Router_SimpleDesc;
RouterEndPoint_epDesc.latencyReq = noLatencyReqs;
afRegister( &RouterEndPoint_epDesc );
// 协调器组播、单播端点注册
CoordEndPoint_epDesc.endPoint = CoordCommand_EndPoint;
CoordEndPoint_epDesc.task_id = &zclSampleApp_TaskID;
CoordEndPoint_epDesc.simpleDesc
= (SimpleDescriptionFormat_t *)&Coord_SimpleDesc;
CoordEndPoint_epDesc.latencyReq = noLatencyReqs;
afRegister( &CoordEndPoint_epDesc );
如上,我在程序中定义了好几个端点。但是我使用目的端点为CoordCommand_EndPoint发出去的消息老是进入接收方的SampleApp_EndPoint的处理选项中去,请问是为何?