... | ... | @@ -41,11 +41,33 @@ for stored single data lines {<optional additional JSON>,<d4fb>} |
|
|
## EXAMPLE
|
|
|
### simple send position data
|
|
|
PFAL command example
|
|
|
|
|
|
PFAL command example to write JSON data
|
|
|
```
|
|
|
TCP.JSON.Flush,"http://testserver.com/json",0,":{\'LAT\':&(LastLat),\'LON\':&(LastLon),\'IMEI\':&(IMEI),\'IGN\':&(IO8)}"
|
|
|
$PFAL,TCP.JSON.Write,"
|
|
|
<d4fb>\'&(Date)_&(Time)\':{\'IMEI\':&(IMEI),\'AI1\':&(IN1)}"
|
|
|
```
|
|
|
HTTP POST
|
|
|
PFAL command example to flush
|
|
|
```
|
|
|
$PFAL,TCP.JSON.Flush,"http://59.181.166.3:47000/demo/telematics",0,"{\'KEY\':\'&(Date)_&(Time)\',\'MOVELETKEY\':\'blackbox-fox3\',\'ACK\':\'SUCCESS\',\'PARTICIPANTKEY\':\'&(Date)_&(Time)\',<d4fb>}"
|
|
|
```
|
|
|
TBD
|
|
|
HTTP POST
|
|
|
```
|
|
|
POST /demo/telematics HTTP/1.0
|
|
|
HOST: 59.181.166.3..User-Agent:AVLemb/2.13
|
|
|
Content-Type: application/json; charset=ISO-8859-1
|
|
|
FAL-IMEI: 353816054730215..FAL-ENCRYPTION: 1
|
|
|
Content-Length: 776
|
|
|
|
|
|
{"KEY":"06.01.1980_00:09:21","MOVELETKEY":"blackbox-fox3","ACK":"SUCCESS","PARTICIPANTKEY"
|
|
|
:"06.01.1980_00:09:21",
|
|
|
"06.01.1980_00:01:00":{"LAT":0.0000000,"LON":0.0000000,"IMEI":353816054730215},
|
|
|
"06.01.1980_00:01:01":{"LAT":0.0000000,"LON":0.0000000,"IMEI":353816054730215},
|
|
|
"06.01.1980_00:01:38":{"LAT":0.0000000,"LON":0.0000000,"IMEI":353816054730215},
|
|
|
"06.01.1980_00:02:56":{"LAT":0.0000000,"LON":0.0000000,"IMEI":353816054730215},
|
|
|
"06.01.1980_00:03:15":{"LAT":0.0000000,"LON":0.0000000,"IMEI":353816054730215},
|
|
|
"06.01.1980_00:03:26":{"LAT":0.0000000,"LON":0.0000000,"IMEI":353816054730215},
|
|
|
"06.01.1980_00:04:09":{"LAT":0.0000000,"LON":0.0000000,"IMEI":353816054730215}
|
|
|
}
|
|
|
|
|
|
``` |