Skip to content

1004: LORA โ€‹

๐Ÿงช Alpha

LORA interactions are currently in an experimental phase, and the API may change in future, and documentation may be incomplete.

Interaction with LORA. Used to interact with LORA on the device.

FieldNameDescriptionType
5MethodRequest a service to be perform an action
Possible values:
  • 1: SETโ€” Set one or more values that are provided in the message payload.
  • 2: GETโ€” Get values for the associated message type.
  • 3: SUBSCRIBEโ€” Subscribe to values for the associated message type. Can be used in conjunction with other header fields to define the subscription parameters, such as Interval, Duration, Timeout, Storage Level and Message Level. If no interval is provided, messages will be sent as and when new data is available. Some data, such as GPS position, may require a set interval to be provided.
  • 5: UNSUBSCRIBEโ€” Unsubscribe from a previous subscription.
uint8
This is an extract of header fields that are relevant to this message type, you can find them all documented in the Headers section.

Payload โ€‹

FieldNameDescriptionTypeUnit
2Payloadbytes
4Spread Factor8-12uint8
5Coding Rate1-4. [1: 4/5, 2: 4/6, 3: 4/7, 4: 4/8]uint8
6Bandwidth0-2. [0: 125 kHz, 1: 250 kHz, 2: 500 kHz]uint8
7Center Frequency860000000-925000000. value in hzuint32
8TX Power0-22uint8
9Preamble Length4-128uint8
10Receive MsHow long to listen for after a transmit, in msuint32
11SleepTrue will tell the LORA to stop all activity nowbool
12Stateuint

Code โ€‹

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