TCP socket connection with TLS.
Uses JSON to represent the message (http://en.wikipedia.org/wiki/JSON).
{
"msg_type":"header"
"session":"QWERQW234523WEGERWTRHW"
"version":2.0
}
{
"msg_type":"beacon"
"device_id":"QE254JE58S37JFG"
"worker_name":"Steve Harding"
"lat":127.23523
"long":-37.24236
"speed":99
"heading":270
"effective_at":20101225T00:00.00Z
"gps_sats":24
"hdop":1.3
"ignition":true
#These ones are optional, and won't be used for the iPhone
"digital_io_1":false
"digital_io_2":false
"digital_io_3":false
"digital_io_4":false
}
- msg_type. Must be 'header'
- session. An token representing your user credentials.
- version. The version of the protocol used.
- msg_type. Must be 'beacon'
- device_id. A unique string that identifies the GPS unit sending the update. This is typically the unit's serial number if available