Instead of fixed 5s/30s retry intervals, implement exponential backoff: - Initial delay: 1 second - Max delay: 60 seconds - Doubles on each failed attempt - Resets to minimum on successful connection This prevents hammering a down broker while still reconnecting quickly when the issue is transient. Also includes fix for WiFiState/NetworkState enum mismatch in getWiFiStatus() which was already on main.
Heltec V3 MeshCore Repeater
A standalone MeshCore LoRa mesh repeater for the Heltec WiFi LoRa 32 V3.
Build
pio run
Flash
Via USB:
pio run -t upload
Via OTA:
- Connect to serial:
screen /dev/ttyUSB0 115200 - Type:
start ota - Join WiFi:
MeshCore-OTA - Browse to:
http://192.168.4.1/update - Upload:
.pio/build/heltec_v3_repeater/firmware.bin
Monitor
pio device monitor
Configuration
Edit platformio.ini:
-D ADVERT_NAME='"RPM Repeater"'
-D ADVERT_LAT=0.0
-D ADVERT_LON=0.0
-D ADMIN_PASSWORD='"password"'
Dependencies
Requires MeshCore library at ../MeshCore.
Docs
See docs/ for detailed documentation.
Description
Languages
C++
100%