订阅抓图结果
接口描述
当相机抓图完成后,推送抓图结果。
Topic
device/${sn}/message/up/snapshot
消息示例
{
"id": "b1Y1wdVEHu1xFwdU",
"bv": 12378,
"sn": "265e1040-85e01fb7",
"name": "snapshot",
"version": "1.0",
"timestamp": 1621927036,
"payload": {
"state_code":"",
"msg_id":"123456",
"imageformat":"jpg",
"imgPath":""
}
}
字段含义
参数 | 类型 | 说明 |
---|---|---|
state_code | int | 状态码(200成功;500失败) |
msg_id | string | 消息ID |
imageformat | string | 图片格式(目前固定支持jpg) |
imgPath | string | 图片路径,Base64编码后的云存路径 |