# 探测智慧模组状态信息

该接口可以探测智慧模组的状态信息。

# 请求路径

{CLTPlatform-ip}:8086/module/detectAllDevice

  • 请求地址替换为对应的 ip 地址
  • 请求端口号为 8086

# 请求协议

HTTP

# 请求方法

POST

# 请求参数

  • 请求体的Content-Type请设置为application/json
参数名 说明 必填 类型 数据字典 限制 示例
command 指令类型 [string] module/detectAllDevice
data 数据 [object]

# 请求示例

{
    "command": "module/detectAllDevice",
    "data": {}
}

# 返回结果

参数名 说明 必填 类型 数据字典 限制 示例
command 指令类型 [string]
code 状态码 [int]
message 消息 [string]
data 数据 [object]
data>>deviceList 设备列表 [array]
data>>deviceList>>senderIndex 所在发送器的序号 [int]
data>>deviceList>>portIndex 所在网口的序号 [int]
data>>deviceList>>receiverIndex 所在接收卡的序号 [int]
data>>deviceList>>serialPortIndex 串口号 [int]
data>>deviceList>>inSerialPortIndex 串口内的序号 [int]
data>>deviceList>>bValid 是否有效 [boolean]

# 返回示例

{
    "command": "",
    "code": 0,
    "message": "",
    "data": {
        "deviceList": [{
            "senderIndex": 0,
            "portIndex": 0,
            "receiverIndex": 0,
            "serialPortIndex": 0,
            "inSerialPortIndex": 0,
            "bValid": false
        }]
    }
}

# 详细说明