设备通信状态更新
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
req_data | String | 必须 | {"uniqueNumber":"fjejfe","uniqueBootID":"fjef183","wifiStatus":1,"apStatus":1,"intefaceStatus":1,"gmtStatusChange":1839193112} | unniqueNumber:设备唯一编号;uniqueBootID:开关机编号; wifiStatus:wifi状态(0.暂无 1.接入 2.断开);apStatus:ap状态(0.暂无 1.已连接设备 2.关闭 3.创建);intefaceStatus:接口请求结果(0.暂无 1.成功 2.失败 3.没有网络) | |
token | String | 必须 | token | token |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | TopResult | 系统自动生成 | |
|
1 2 3 4 5 6 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaFootscanDeviceCommunicationAddRequest req = new AlibabaFootscanDeviceCommunicationAddRequest(); req.setReqData( "{\"uniqueNumber\":\"fjejfe\",\"uniqueBootID\":\"fjef183\",\"wifiStatus\":1,\"apStatus\":1,\"intefaceStatus\":1,\"gmtStatusChange\":1839193112}" ); req.setToken( "token" ); AlibabaFootscanDeviceCommunicationAddResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 | < alibaba_footscan_device_communication_add_response > < result > < message > < msg_en >success</ msg_en > < msg_cn >成功</ msg_cn > </ message > < code >0</ code > </ result > </ alibaba_footscan_device_communication_add_response > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|