Commit 600336e1899e78edecb6740b680df4fa7944b4d1

Authored by 王通
1 parent 7886a0e2

添加消息上传下发接口

Showing 1 changed file with 45 additions and 2 deletions
README.md
... ... @@ -14,7 +14,7 @@
14 14 * [越站](#越站)
15 15 * [聚集](#聚集)
16 16 * [掉线](#掉线)
17   -
  17 + * [消息上传下发](#消息上传下发)
18 18  
19 19 ----------
20 20  
... ... @@ -197,4 +197,47 @@
197 197 | lon | float | 经度 |
198 198 | lat | float | 纬度|
199 199 | timestamp | long | 时间戳 |
200   -| createDate | Date | 时间 |
201 200 \ No newline at end of file
  201 +| createDate | Date | 时间 |
  202 +
  203 +## 消息上传下发
  204 +----------
  205 +### 消息下发接口
  206 +[http://192.168.168.192:8080/transport_server/rtgps](http://192.168.168.192:8080/transport_server/message/)
  207 +
  208 +<span style="color: red">Request</span>:
  209 +```json
  210 +{
  211 + "msgId":12345,
  212 + "operCode":0x60,
  213 + "data":{
  214 + companyCode:22,//short
  215 + deviceId:029L2222,//string
  216 + timestamp:134326,//long
  217 + instructType:0x00,//short
  218 + dispatchInstruct:0x00,//short
  219 + msgId:12345,//long
  220 + alarmTime:201606012000,//long
  221 + serviceState:0x00000000,//long
  222 + txtContent:"你好"//string
  223 + }
  224 +}
  225 +```
  226 +```json
  227 +{
  228 + "msgId":12345,
  229 + "operCode":0x64,
  230 + "data":{
  231 + cityCode:22,//int
  232 + deviceId:029L2222,//string
  233 + lineId:134326//string
  234 + }
  235 +}
  236 +```
  237 +
  238 +<span style="color: red">Response</span>:
  239 +```json
  240 +{
  241 + "msgId":12345,
  242 + "errCode":0
  243 +}
  244 +```
202 245 \ No newline at end of file
... ...