文档
测试

门锁状态变化主动上报通知

POST
/detect/set/doorOpened

接口描述

门已经被人打开了的通知 其他门锁相关的通知见下表

说明 / 示例

### 同样门锁通知还有下面几个参数 |index|接口|含义| |-|-|-| |1|/detect/set/doorClosed|门关通知| |2|/detect/set/closeLock|关锁| |3|/detect/set/openLock|开锁 | |4|/detect/set/doorIsNotOpen|开锁未开门 | |5|/detect/set/openLockError|开锁故障| |6|/detect/set/doorOpened|门开通知| ``` { "cmd":"2", "eventId":"1", "deviceId":"1", "cmdAct":"openLock", "content":"2", "userInfo":"3", #用户信息: id "userType":"1", #用户身份信息 枚举值 "timestamp":1623567067193, "endTimestamp":1623567071922 } ```

请求参数

参数名
类型
描述
必填
cmd
long int
必填
eventId
long int
必填
timestamp
long int
必填
endTimestamp
long int
必填
userType
int
必填
userInfo
int
必填
content
string
按需使用
必填
cmdAct
string
与 后台请求设备一致
必填
deviceId
int
必填