订阅IO输入事件

接口描述

当相机有IO输入事件触发后,推送此消息。

Topic

device/{sn}/message/up/gpio_in

消息示例

{
  "id": "b1Y1wdVEHu1xFwdU",
  "bv": 12378,
  "sn": "265e1040-85e01fb7",
  "name": "gpio_in",
  "version": "1.0",
  "timestamp": 1621927036,
  "payload": {
    "body": {
      "AlarmGioIn": {
        "deviceName": "IVS",
        "ipaddr": "192.168.13.22",
        "result": {
          "TriggerResult": {
            "source": 0,
            "value": 1
          }
        },
        "serialno": "265e1040-85e01fb7"
      }
    }
  }
}

字段含义

层级 参数 类型 说明
1 body object Body内容
1.1 AlarmGioIn object IO输入事件结构体
1.1.1 deviceName string 设备名称,Base64编码
1.1.2 ipaddr string 设备IP
1.1.3 result object 结果
1.1.3.1 TriggerResult object 触发结果
1.1.3.1.1 source int IO编号
1.1.3.1.2 value int IO状态(0 断, 1 通 ,2 先通后断)
1.1.4 serialno string 设备序列号

results matching ""

    No results matching ""