MQTT bridged LoRa networks with MicroPython on ESP32

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
User avatar
Wei Lin
Posts: 21
Joined: Sat Jan 21, 2017 1:07 pm

MQTT bridged LoRa networks with MicroPython on ESP32

Post by Wei Lin » Thu Oct 12, 2017 4:01 am

Image
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

Post Reply