思路是:设备入网成功后,获取设备的状态(比如开关设备,设备状态就是开和关);
然后定时向协调器上报设备的状态;
问题:怎么获取设备的状态,有没有专门的获取函数,或者例程?
怎么实现上报?
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.
思路是:设备入网成功后,获取设备的状态(比如开关设备,设备状态就是开和关);
然后定时向协调器上报设备的状态;
问题:怎么获取设备的状态,有没有专门的获取函数,或者例程?
怎么实现上报?
您可以设置一系列的数据规则来表示各个不同类型的设备以及状态,当设备的状态改变时就会发送相应的数据给协调器,这样协调器就能获取各个设备的状态了