当网关下子设备的在线状态发生变化时(包括本地和云端的在线状态),网关将广播一条消息给订阅者。

Topic定义

通知Topic: linkedge/notify/deviceStateChanged

Payload格式

{
    "timestamp": 1572250903307,
    "version": "1.0",
    "params": [{
        "gwProductKey": "a1XqBny****",
        "gwDeviceName": "ModbusTestGW",
        "deviceList": [{
            "productKey": "a1OSqKK****",
            "deviceName": "DN035",
            "localOnline": "true/false",
            "cloudOnline": "true/false",
            "activationState": "activated/notActivated/activationFailed",
        }]
    }]
}

参数说明请参见Payload通用参数说明