MQTT bridged LoRa networks with MicroPython on ESP32
MQTT bridged LoRa networks with MicroPython on ESP32
Hi,
I use MQTT to bridge LoRa networks, in a Cellular-Network fashion.
A "LoRa gateway" is an ESP32, it is also a MQTT client and a worker (like a Celery worker), so via MQTT, gateways can do RPC (Remote-Procedure-Call) to communicate and cooperate with each others .
All code is written in MicroPython.
For an ESP32 to function as a gateway to bridge LoRa networks, it needs three parts of code (in the order of uploading to ESP32):
1. MQTT client as a worker - so ESP32 can communicate and cooperate with each others :
https://github.com/Wei1234c/Elastic_Net ... icroPython
2. SX127x driver - for ESP32 to drive SX127x:
viewtopic.php?f=16&t=3871
3. LoRa gateway - for ESP32 to bridge LoRa networks:
https://github.com/Wei1234c/MQTT_bridge ... adme_en.md
Regards.
Wei Lin