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.

关于“绑定”成功后,怎么使用绑定表的问题,请大神帮忙解答一下。

我通过match descriptor request 实现了匹配绑定,和通过协调器的串口实现辅助绑定bind request 。抓包都正常响应了响应的respone。但是,我不知道怎么通过绑定的设备向被绑定的设备发送控制命令。

比如,一个开关和灯实现了绑定,这个绑定的过程及接口步骤TI的协议栈都有代码可以参考。但是绑定成功后,怎么通过开关控制灯。怎么去利用这个绑定表实现控制灯。

  • 已经解决了。只需要在发送时改变发送模式为AddrNotPresent即可。

    zclSampleSw_DstAddr.addrMode = (afAddrMode_t)AddrNotPresent;
    zclSampleSw_DstAddr.endPoint = 0;
    zclSampleSw_DstAddr.addr.shortAddr = 0;