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.

如何获取终端设备的工作状态

Other Parts Discussed in Thread: Z-STACK

    假设我有一个控制LED灯的开关switch,那么如何获取LED灯的工作状态(on/off)呢?zigbee有相关的字段标识吗?

  • 我的工作情景是,当使用APP控制终端设备的时候,我想通过host端(控制gateway)来获取终端的工作状态,然后将状态返回给APP,这样就可以实现远程了解家里的智能家居设备此时的工作情况。

  • 如果你是按照zigbee home automation来做的,那么在light里面 有专门的attribute来表示灯的状态的,你的网关可以通过read attribute获得,灯也可以主动report attribute

    你可以参考z-stack home 1.2.2a里面的samplelight例程,里面都有