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.
使用Z-Stack Home 1.2.0提供的例子,使用SampleSwitch的协调器coordinatorEB程序,控制SampleLight的RouterEB程序,通过SampleSwitch上的按键控制SampleLight上的led是没问题了,我现在想在这个程序上添加串口控制,用串口发指令给SampleSwitch,然后协调器再通过无线发命令给SampleLight,请问一下在SampleSwitch中怎么添加串口程序,而且使用ZHA标准的话,发送什么指令才能控制led?
谢谢VV的解答,但是我发现使用串口发数据的时候,手抓包无法捕获到数据,实际上是数据都没发出去。请问需要在协调器里添加什么程序才能把串口的数据发送出去?协调器是通过这个函数发送无线数据的吗?
ZStatus_t zcl_SendCommand( uint8 srcEP, afAddrType_t *destAddr,uint16 clusterID, uint8 cmd, uint8 specific, uint8 direction,uint8 disableDefaultRsp, uint16 manuCode, uint8 seqNum,uint16 cmdFormatLen, uint8 *cmdFormat )