远程控制设备通断电
统一指令:controller-event
通断器、空开、10A-86插座、16A-86插座、10A转换器插座、16A转换器插座等单路设备的通电或断电操作
向设备发送指令 服务端向设备订阅topic发送消息
{
"key" : 0,
"messageId" : "controller-event",
"type" : "event"
}
设备返回信息 设备向服务端订阅topic上报消息
{
"ip" : "192.168.3.196",
"key" : 0,
"keyLock" : 0,
"mac" : "7e87ce97ce74",
"messageId" : "controller-event",
"onState" : 1,
"signal" : -28,
"ssid" : "gemeopen",
"timerEnable" : 0,
"timerInterval" : 0,
"type" : "GSMM1P2",
"version" : "3.0.0",
"wifiLock" : 0
}
获取设备基本信息
统一指令:info-all
查询当前设备的基础信息,如设备MAC地址、设备型号、固件版本号、当前连接的WiFi名称(ssid)、当前设备被分配的IP地址、WiFi信号强度及相关配置信息。
向设备发送指令 服务端向设备订阅topic发送消息
{
"messageId" : "info-all",
"type" : "info"
}
设备返回信息 设备向服务端订阅topic上报消息
{
"ip" : "192.168.3.196",
"key" : 0,
"keyLock" : 0,
"mac" : "7e87ce97ce74",
"messageId" : "info-all",
"onState" : 1,
"signal" : -32,
"ssid" : "gemeopen",
"timerEnable" : 0,
"timerInterval" : 0,
"type" : "GSMM1P2",
"version" : "3.0.0",
"wifiLock" : 0
}
获取设备用电量信息
统一指令:info-statistic
获取设备当前的运行状态与电气数据:开关状态、瞬时电流、瞬时电压、瞬时功率、累计用电量等。
向设备发送指令 服务端向设备订阅topic发送消息
{
"messageId" : "info-statistic",
"type" : "statistic"
}
设备返回信息 设备向服务端订阅topic上报消息
{
"current" : 0,
"energy" : 0,
"key" : 0,
"mac" : "7e87ce97ce74",
"messageId" : "info-statistic",
"power" : 0,
"voltage" : 230.845
}