
Chapter 12 Device Logic (Pawn)
12.3.7 LoRa
12.3.7.1 Constants
Configuration of the UART interface that is connected to the LoRa module
Configuration flags for the LoRa_Init() function
LORA_1_STOPBIT
= 0b0000000000000001, // 1 Stop bit
LORA_2_STOPBIT
= 0b0000000000000010, // 2 Stop bit
LORA_PARITY_NONE
= 0b0000000000000000, // no parity
LORA_PARITY_ODD
= 0b0000000000000100, // odd parity
LORA_PARITY_EVEN
= 0b0000000000001000, // even parity
LORA_7_DATABIT
= 0b0000000000000000, // 7 Data bits
LORA_8_DATABIT
= 0b0000000000010000, // 8 Data bits
LORA_FLOW_NONE
= 0b0000000000000000, // no flow control
LORA_FLOW_RTSCTS
= 0b0000000001000000, // RTS/CTS hand shake
LORA_FULL_DUPLEX
= 0b0000000000000000, // full duplex mode
LORA_HALF_DUPLEX
= 0b0000000100000000, // half duplex mode
12.3.7.2 Callback functions
public func(const data{}, len);
Function to be provided by the script developer, that is called when characters are received via the
RS232 interface connected to the LoRa module
Parameter
Explanation
data
Array that contains the received data
len
Number of received bytes
Rev. 01
113