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
Protocol
3
3
Length
220
22 bytes
Type
300
30 (Transmit Now)
Header Count
20
2
Header Types
51
5, 1
Method
14
4
Message ID
1131
131
Payload Count
10
1
Payload Types
2
2
Payload
3102111111
102,111,111
Checksum
18028
7348
Response from device showing status of transmission
Protocol
3
3
Length
200
20 bytes
Type
300
30 (Transmit Now)
Header Count
30
3
Header Types
341
3, 4, 1
Response to
1131
131
Status
11
1 (Generic Error)
Message ID
192
92
Payload Count
00
0
Checksum
84149
38228

Code ​

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