ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
## 远程遥控 `devControl` ### 发布Topic:v1.1/client/<customer_id>/control/post | 名称 | 类型 | 描述 | | --- | --- | --- | | mid | String | 会话ID | | timestamp| String | 时间戳 | | token| String | 用户token | | command| String | 指令 | | params| Object | 参数 | #### params结构体 | 名称 | 类型 | 描述 | | --- | --- | --- | | deviceId| String | 设备ID | | pws| String | 操作密码 | | identifier| String | 遥控字段 | | value| Number| 写入值 | ``` 塑壳合闸操作 { "mid": "3245200221001", "timestamp": 1616586532, "token": "33e1121ae1171781230337b9e88c1aa406572d765dd33b92523bd38a4002de5e", "command": "devControl", "params": { "deviceId": "ovIrHMayZ005gcql", "pws": "123456", "identifier": "SWITCH_HE", "value": 2 } } 塑壳分闸操作 { "mid": "3245200221001", "timestamp": 1616586532, "token": "33e1121ae1171781230337b9e88c1aa406572d765dd33b92523bd38a4002de5e", "command": "devControl", "params": { "deviceId": "ovIrHMayZ005gcql", "pws": "123456", "identifier": "SWITCH_FEN", "value": 1 } } ``` ### 订阅Topic:v1.1/client/<customer_id>/control/reply | 名称 | 类型 | 描述 | | --- | --- | --- | | mid | String | 会话ID | | timestamp| String | 时间戳 | | command| String | 指令 | | code| Number| 状态码 0-成功 1- 失败 | | msg| String | 消息描述 | | result| Object | 参数 | #### result结构体 | 名称 | 类型 | 描述 | | --- | --- | --- | | deviceId| String | 设备ID | | identifier| String | 遥控字段 | | value| String | 写入值 | ``` { "mid": "3245200221001", "timestamp": 1616586532, "command": "devControl", "code": 0, "msg": "操作成功", "result": { "deviceId": "ovIrHMayZ005gcql", "identifier": "SWITCH_HE", "value": 2 } } ```