Hello, I've just created a LoRaDomo library (available in the Arduino library manager) to simplify the setup of a LoRa/MQTT gateway and its associated nodes. A web interface allows you to view each node and its sensors, as well as the RSSI, SNR, and board type.
The library supports regular sensor updates, heartbeats, actuators from the home automation controller, and battery level updates.
I was using JeeMySensors until now, but it no longer works on recent Debian systems. MySensors is a good choice, but the Wi-Fi and LoRa initialization process can be problematic if it fails. Since my nodes need to continue their tasks even when isolated (pH and ORP regulation, pool pump control, etc.), I created my own non-blocking library that is compatible with any system using MQTT.
On the hardware side, it supports TTGO V1, Heltec V2, V3, and V4. Therefore, it supports the SX1262 and SX1276 LoRa chips.
I'm looking for feedback on this library. Thanks in advance.
LORA and MQTT together? I am pleasantly surprised to hear you got LORA working with that kind of data, normally LORA is limited to much lower bandwidths. I had a quick look at the examples and I don't see a use for me, but congrats on the effort.
I noticed that one of the settings appears to be selecting a LoRa bandwidth of 31khz ?
MODEM_BW31_CR48_SF512
That would likely be OK for an SX1262 that has a TCXO (and a lot of them do) but could be marginal for a SX127X, most all of which only have plain crystals.
You're right. It's a bit borderline, especially with large temperature variations. It should work at room temperature. For greater reliability and outdoor use, MODEM_BW125_CR48_SF4096 is preferable. LoRaDomo is a home automation-oriented library, so it's primarily for indoor use. It's designed so that everyone can create their own nodes and directly competes with Mysensors.