Commit a11e2cba authored by 赵啸非's avatar 赵啸非

添加设备消息接收下发功能

parent 0d586e5a
......@@ -117,7 +117,7 @@ Authorization: Bearer {{authToken}}
###设备上报
POST {{baseUrl}}/api/upload
Content-Type: application/json
Authorization: Bearer {{authToken}}
Authorization: {{authToken}}
{
"deviceNum": "AB:DD:DF:FD:AD:FA:DA:bb",
......@@ -125,6 +125,26 @@ Authorization: Bearer {{authToken}}
}
###设备消息
POST {{baseUrl}}/api/callback
Content-Type: application/json
[
{
"data":"{xxxx}",
"deviceCode":"A1:12:23:12:23:11",
"messageType":"heart_beat",
"timestamp":1654656951795
},
{
"data":"{bbbbbb}",
"deviceCode":"A1:12:23:12:23:11",
"messageType":"heart_beat",
"timestamp":1654656951795
}
]
###设备上报
POST {{baseUrl}}/test/upload?deviceId=2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment