This toiot single-channel gateway helps to communicate between LoRa and MQTT communication.
For more information on LoRaWAN, please refer to the following repository(https://github.com/gjlee0802/LoRaWAN-Study).
- Step 1
$ sudo raspi-config nonint do_spi 0
$ sudo apt-get install python-dev python3-dev
$ sudo apt-get install python-pip python3-pip
- Step 2
$ cd toiot-lora-gateway-driver/app
$ pip3 install -r requirements.txt
$ cd toiot-lora-gateway-driver/app
$ python3 run.py --b='MQTT_BROKER_IP' --p=port_number
The network server requires the gateway to send DevStatusReq every 30 seconds.
End-Devices answers DevStatusAns to provide information about the battery and radio_status.