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.
VV你好,
zclSampleLight_SimpleDesc定义的Endpoint = 13和sampleLight_TestEp定义的Endpoint = 20,并不一样;并且zclHA_Init( &zclSampleLight_SimpleDesc )调用中注册的epDesc->task_id = &zcl_TaskID,而afRegister( &sampleLight_TestEp )调用中注册的task_id = &zclSampleLight_TaskID。
我是否可以理解为调用zclHA_Init( &zclSampleLight_SimpleDesc )是为了将与SAMPLELIGHT_ENDPOINT = 13有关的所以消息先发送到ZCL;调用afRegister( &sampleLight_TestEp ) 是为了把与sampleLight_TestEp(Endpoint = 20)有关的sys level的消息传到App task来,这两个Endpoint并没有直接关系。(不知道理解的对不对)。
例程中的sampleLight_TestEp端点描述与“灯控功能”有联系吗?因为实验我将//afRegister( &sampleLight_TestEp )这个注册“//”注销掉,发现对整个功能没有影响,任然可以组网并完成灯控功能。