Vehicle on and off message push
After the login is successful, if a vehicle is getting off and on, the message is pushed in real time to synchronize the status of the vehicle
websocket Header field information
Message method: Push
Message type: 8001
Push message definition
| field | type | desc |
|---|---|---|
| hdr | object | Headers, Table 1 in login :websocket headers |
| data | object | on/off line data |
Example
json
{
"hdr": {
"code": 200,
"message": "",
"msgType": 8001,
"reqSN": 1,
"respSN": 0
},
"data": {
"devNo": "1300000001",
"isOnline":true,
"devVersion":"S51_1.0.12",
"vehicleGuid":1,
"vehicleNo": "testA00001",
"adminGuid":1,
"eventTime":1699062066, //UTC time
"timeLen":3600, //Unit second
"deviceManufacturer":0
}
}{
"hdr": {
"code": 200,
"message": "",
"msgType": 8001,
"reqSN": 1,
"respSN": 0
},
"data": {
"devNo": "1300000001",
"isOnline":true,
"devVersion":"S51_1.0.12",
"vehicleGuid":1,
"vehicleNo": "testA00001",
"adminGuid":1,
"eventTime":1699062066, //UTC time
"timeLen":3600, //Unit second
"deviceManufacturer":0
}
}
X-Link API Document