
12.3.7.3 Functions
native LoRa_Init(LoRa, baudrate, mode, funcidx);
Initialises the UART interface that is connected to the LoRa module
Parameter
Explanation
LoRa
Number of the UART interface that is connected to the LoRa module; for the
myDatalogEASY IoTmini always 0
baudrate
Baud rate to be used
mode
Bit 0...1
1 = 1 stop bit
2 = 2 stop bits
Bit 2...3
0 = no parity
1 = uneven parity
2 = even parity
Bit 4...5
0 = 7 data bits
1 = 8 data bits
Bit 6...7
0 = no flow control
1 = RTS/CTS handshake
Bit 8
0 = full duplex mode
1 = half duplex mode
Note:
You can also use the predefined constants for this parameter (see
"Configuration of the UART interface that is connected to the LoRa module" in
chapter "Constants" on page 113). The constants can also be combined using
the "or" conjunction.
funcidx
Index of the public function for receiving characters on the UART interface that is
connected to the LoRa module
Type of function: public func(const data{}, len);
Explanation
Return value
l
OK, if successful
l
ERROR_FEATURE_LOCKED if data transmission via LoRaWAN is not
activated on the device
l
< OK, if another error occurs (see "Return codes for general purposes" in
chapter "Constants" on page 84).
114
Rev. 01