|
# HowTo use REST/JSON
|
|
# HowTo use REST/JSON
|
|
|
|
|
|
## simple send position data
|
|
|
|
PFAL command example
|
|
|
|
```
|
|
|
|
TCP.JSON.Flush,"http://testserver.com/json",0,":{\'LAT\':&(LastLat),\'LON\':&(LastLon),\'IMEI\':&(IMEI),\'IGN\':&(IO8)}"
|
|
|
|
```
|
|
|
|
HTTP POST
|
|
|
|
```
|
|
|
|
TBD
|
|
|
|
```
|
|
|
|
|
|
|
|
## REST specific PFAL commands
|
|
## REST specific PFAL commands
|
|
|
|
|
|
* command to sent HTTP REST with URL encodiong
|
|
* command to sent HTTP REST with URL encodiong
|
... | @@ -47,3 +37,15 @@ TCP.JSON.Flush,"<URL>",<enableBodyEncryption>,"<Parameter-String>" |
... | @@ -47,3 +37,15 @@ TCP.JSON.Flush,"<URL>",<enableBodyEncryption>,"<Parameter-String>" |
|
send unsent data as MultiMsg JSON
|
|
send unsent data as MultiMsg JSON
|
|
<Parameter-String> : JSON with additional marker as placeholder
|
|
<Parameter-String> : JSON with additional marker as placeholder
|
|
for stored single data lines {<optional additional JSON>,<d4fb>}
|
|
for stored single data lines {<optional additional JSON>,<d4fb>}
|
|
|
|
|
|
|
|
## EXAMPLE
|
|
|
|
### simple send position data
|
|
|
|
PFAL command example
|
|
|
|
```
|
|
|
|
TCP.JSON.Flush,"http://testserver.com/json",0,":{\'LAT\':&(LastLat),\'LON\':&(LastLon),\'IMEI\':&(IMEI),\'IGN\':&(IO8)}"
|
|
|
|
```
|
|
|
|
HTTP POST
|
|
|
|
```
|
|
|
|
TBD
|
|
|
|
```
|
|
|
|
|