Skip to content

30: Transmit Now

Trigger a transmission, to Lightbug cloud, over GSM. The message will initially be ACKed indicating the device has received the message. When the data is sent to the cloud, or the send fails, a response will be sent with the status 1 (OK), 2 (NOT OK). If supported by the device, arbitrary data can be sent as a sensorReading of type `uart_blob`. Send arbitrary data over GSM to the Lightbug cloud as a sensorReading of type `uart_blob`.

Payload

FieldNameDescriptionTypeUnit
1GPS Search0 = no gps fix required
1 = wait for GPS lock (or timeout) before send
bool
2PayloadData to send, can be up to 200 bytes.
Only supported by devices that support uart_blob sensorReading type. (Currently only Vipers)
bytes
3RetriesNumber of retries [0-10]. Exponential backoff (10 = 25h)uint8
4Priority0 - 1uint8

Examples

Send the arbitrary data 'foo' as ascii bytes to the cloud
Response from device showing status of transmission

Code

For convenience, the following constants can be used to reference this message type.