CM53 道闸网关 — 道闸控制协议

请求说明:

协议 方法 PATH
HTTPS POST /openApi/gateway/switch

Body参数:

参数 类型 必填 说明
appId String 是 appId
expires String 是 过期时间
sign String 是 签名
deviceNo String 是 设备编号
cmd String 是 固定值:barrierGatewaySwitch
data String 是 开关闸数据
data.switchType Integer 是 0 关闸 / 1 开闸 / 2 常开 / 3 常关 / 4 停止 / 5 取消常开
{
  "appId": "ym1a2b3c4d5e6f7g8",
  "expires": "1761004215",
  "sign": "9f2c1d8a7b6e5f4a3c2b1d0e9f8a7b6c",
  "deviceNo": "CM53A1B2C3D4",
  "cmd": "barrierGatewaySwitch",
  "data": "{\"switchType\":1}"
}

返回参数:

参数 类型 必填 说明
code int 是 响应状态码
msg String 是 响应消息
appId String 是 appId
expires String 是 过期时间
sign String 是 签名
deviceNo String 是 设备编号
cmd String 是 固定值:barrierGatewaySwitch
data String 是 空字符串,固定值:””
{
  "code": 200,
  "msg": "操作成功",
  "appId": "ym1a2b3c4d5e6f7g8",
  "expires": "1761004215",
  "sign": "9f2c1d8a7b6e5f4a3c2b1d0e9f8a7b6c",
  "deviceNo": "CM53A1B2C3D4",
  "cmd": "barrierGatewaySwitch",
  "data": ""
}
作者:吴勇  创建时间:2026-10-24 15:54
最后编辑:吴勇  更新时间:2026-10-24 16:18