Commit 660571e7858aefed21647759df186502324381ab
1 parent
f07c2788
1
Showing
1 changed file
with
24 additions
and
1 deletions
README.md
| ... | ... | @@ -208,8 +208,9 @@ |
| 208 | 208 | ```json |
| 209 | 209 | { |
| 210 | 210 | "msgId":12345, |
| 211 | - "operCode":96, | |
| 211 | + "operCode":0x60, | |
| 212 | 212 | "data":{ |
| 213 | + "operCode":0x26,//有则表示二级协议 | |
| 213 | 214 | "companyCode":22,//short |
| 214 | 215 | "deviceId":"029L2222",//string |
| 215 | 216 | "timestamp":134326,//long |
| ... | ... | @@ -240,4 +241,26 @@ |
| 240 | 241 | "msgId":12345, |
| 241 | 242 | "errCode":0 |
| 242 | 243 | } |
| 244 | +``` | |
| 245 | + | |
| 246 | +### 消息上传接口 | |
| 247 | + | |
| 248 | +<span style="color: red">Request</span>: | |
| 249 | +```json | |
| 250 | +{ | |
| 251 | + "msgId":12345,// 有则代表是消息下发的确认 没有则表示是0x80协议上传 | |
| 252 | + "status":0,// 0x80时无数据 0表示失败 1表示成功或设备确认 2表示驾驶员阅读 | |
| 253 | + "operCode":0x80,// 消息确认时无数据 | |
| 254 | + "data":{ | |
| 255 | + "operCode":0x26,//二级协议 | |
| 256 | + "requestCode":22//short | |
| 257 | + }// 消息确认将无数据 | |
| 258 | +} | |
| 259 | +``` | |
| 260 | + | |
| 261 | +<span style="color: red">Response</span>: | |
| 262 | +```json | |
| 263 | +{ | |
| 264 | + "errCode":0 | |
| 265 | +} | |
| 243 | 266 | ``` |
| 244 | 267 | \ No newline at end of file | ... | ... |