21: Session Start
Opens a tracking upload session.
Payload
| Field | Name | Description | Type | Unit |
|---|---|---|---|---|
| 10 | Reset Code | Type of reset that was performed just prior to this session start. Possible values:
| uint8 | |
| 11 | Alert Sensor Value | Value of the sensor that triggered an alert, if applicable. | uint8 | |
| 12 | Last Send Reason | Bits 0-3 represent device state when the session start is serialized; bits 4-6 represent movement events since the previous send (position with a send reason or completed session with a send reason). Repeated events of the same type collapse into one bit; the bits do not encode event time or order. Use this reason for server-generated Wi-Fi or GSM positions, not for GPS positions. A session that fails construction does not consume events. | uint8 | |
| 13 | Last Error | Last error code observed just prior to this session start, if applicable. Possible values:
| uint8 | |
| 30 | Encryption Public Key | 33 bytes sent from device to complete ECDH handshake. Only present if the device is initiating the handshake. | bytes |
Code
For convenience, the following constants can be used to reference this message type.