道闸控制(远程开闸)管理

更新时间:2025-05-30 01:56:03下载pdf

API 列表

请求方式 API 描述
POST /v1.0/iot-02/third/parking/gates/control 道闸控制(远程开闸)

道闸控制(远程开闸)

接口描述

异步指令,需要接消息推送

接口地址

POST /v1.0/iot-02/third/parking/gates/control

请求参数

参数名 类型 参数类型 说明 是否必需
gateway_id String body 网关 id true
device_cid String body 车道设备 id true
control_type int body 控制方式 :单次开关,2:关闭,3:常开,4:常闭 true

响应参数

参数名 类型 说明
code Integer 响应码(详情见错误码章节),成功时为空
success Boolean 是否成功:(true:成功,false:失败)
msg String 请求失败的信息,成功时为空
t Long 返回时间戳,13 位
result boolean 成功、失败

result参数说明

请求示例

POST /v1.0/iot-02/third/parking/gates/control
{
  "gateway_id": "gjEQg9UyLo",
  "device_cid": "U9blFeVRqW",
  "control_type": 1
}

响应成功示例

{
  "success": true,
  "t": 1573441137,
  "result": false
}