www.dragino.com
LG01-N/OLG01-N Gateway User Manual
35 / 61
datr | number | FSK datarate (unsigned, in bits per second)
codr | string | LoRa ECC coding rate identifier
fdev | number | FSK frequency deviation (unsigned integer, in Hz)
ipol | bool | Lora modulation polarization inversion
prea | number | RF preamble size (unsigned integer)
size | number | RF packet payload size in bytes (unsigned integer)
data | string | Base64 encoded RF packet payload, padding optional
ncrc | bool | If true, disable the CRC of the physical layer (optional)
Not all fields are necessary, below is an example:
1)
First set up a LoRa Shield with this code:
. So the LoRa Shield will receive the
data at frequency 915.6Mhz, SF7BW125, CR: 4/5
2)
Edit a file (any name) under
/var/iot/push/
with below content
.
{"txpk":{"freq":915.6,"powe":20,"datr":"SF7BW125","codr":"4/5","ipol":false,"data":"test"}}
And then we can see below output