UPDATE.md 1.1 KB

V3 升级说明

1.设备主题升级

1.1 设备状态上报(D->S)

  • 设备属性上行请求: $thing/up/status/{productKey}/{deviceCode}
  • 设备属性下行响应:$thing/down/status/{productKey}/{deviceCode}

1.2 请求设备上报状态(S->D)

需要主动请求设备上报的时候用以上方式请求TOPIC

  • 设备属性下行请求: $thing/down/status/{productKey}/{deviceCode}
  • 设备属性下行响应:$thing/up/status/{productKey}/{deviceCode}

1.3 设备远程控制(S->D)

当通过云端控制设备时,设备需要订阅下发TOPIC接收云端指令

  • 下发TOPIC: $thing/down/status/{productKey}/{deviceCode}
  • 响应TOPIC:$thing/up/status/{productKey}/{deviceCode}

1.4 设备事件上报(D->S)

  • 设备事件上行请求: $thing/up/event/{productKey}/{deviceCode}
  • 设备事件下行响应:$thing/down/event/{productKey}/{deviceCode}

1.5 设备指令下发(S->D)

当云端调用设备的某个指令调用时,默认TOPIC

  • 下发TOPIC: $thing/down/command/{productKey}/{deviceCode}
  • 设备响应TOPIC: $thing/up/command/{productKey}/{deviceCode}