alibaba.footscan.device.communication.add (设备通信状态更新)

设备通信状态更新

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
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 系统自动生成
  • message
  • Message
  • 消息
  • └ msg_en
  • String
  • success
  • 英文
  • └ msg_cn
  • String
  • 成功
  • 中文
  • └ code
  • Number
  • 0
  • code

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
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());

响应示例

  • XML示例
  • JSON示例
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>

异常示例

  • XML示例
  • JSON示例
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>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部