Update MQTT configurations to change bridge to observer mode across multiple variants

added support for lilygo_t3s3, tbeam_supreme
This commit is contained in:
agessaman committed 2026-01-02 13:36:41 -08:00
1 parent a3875d8727
commit 72811df606
7 files changed
+92 -27

No files matched your search

+3 -3
View File
@@ -80,12 +80,12 @@ To build the MQTT bridge firmware:
### Heltec V3
```bash
pio run -e Heltec_v3_repeater_bridge_mqtt
pio run -e Heltec_v3_repeater_observer_mqtt
```
### Station G2
```bash
pio run -e Station_G2_repeater_bridge_mqtt
pio run -e Station_G2_repeater_observer_mqtt
```
### Custom MQTT Server Configuration
@@ -93,7 +93,7 @@ pio run -e Station_G2_repeater_bridge_mqtt
You can configure a custom MQTT server using build flags in `platformio.ini`:
```ini
[env:Heltec_v3_repeater_bridge_mqtt]
[env:Heltec_v3_repeater_observer_mqtt]
build_flags =
${Heltec_lora32_v3.build_flags}
-D WITH_MQTT_BRIDGE=1
+9 -12
View File
@@ -105,13 +105,13 @@ lib_deps =
${Heltec_lora32_v3.lib_deps}
${esp32_ota.lib_deps}
[env:Heltec_v3_repeater_bridge_mqtt]
[env:Heltec_v3_repeater_observer_mqtt]
extends = Heltec_lora32_v3
upload_port = /dev/cu.usbserial-4
build_flags =
${Heltec_lora32_v3.build_flags}
-D DISPLAY_CLASS=SSD1306Display
-D ADVERT_NAME='"MQTT Bridge"'
-D ADVERT_NAME='"MQTT Observer"'
-D ADVERT_LAT=0.0
-D ADVERT_LON=0.0
-D ADMIN_PASSWORD='"password"'
@@ -138,16 +138,13 @@ build_src_filter = ${Heltec_lora32_v3.build_src_filter}
+<helpers/ui/SSD1306Display.cpp>
+<../examples/simple_repeater>
lib_deps =
${Heltec_lora32_v3.lib_deps}
${esp32_ota.lib_deps}
; PsychicMqttClient - unified MQTT client with WebSocket support
elims/PsychicMqttClient@^0.2.4
; Using latest ArduinoJson (7.x) - compatible with CayenneLPP without patching
bblanchon/ArduinoJson
arduino-libraries/NTPClient
JChristensen/Timezone
; Time library required by Timezone library (explicit dependency for compatibility)
paulstoffregen/Time
${Heltec_lora32_v3.lib_deps}
${esp32_ota.lib_deps}
elims/PsychicMqttClient@^0.2.4
bblanchon/ArduinoJson
arduino-libraries/NTPClient
JChristensen/Timezone
paulstoffregen/Time
[env:Heltec_v3_room_server]
extends = Heltec_lora32_v3
+2 -5
View File
@@ -89,12 +89,12 @@ lib_deps =
${Heltec_lora32_v4.lib_deps}
${esp32_ota.lib_deps}
[env:heltec_v4_repeater_bridge_mqtt]
[env:heltec_v4_repeater_observer_mqtt]
extends = Heltec_lora32_v4
build_flags =
${Heltec_lora32_v4.build_flags}
-D DISPLAY_CLASS=SSD1306Display
-D ADVERT_NAME='"MQTT Bridge"'
-D ADVERT_NAME='"MQTT Observer"'
-D ADVERT_LAT=0.0
-D ADVERT_LON=0.0
-D ADMIN_PASSWORD='"password"'
@@ -121,13 +121,10 @@ build_src_filter = ${Heltec_lora32_v4.build_src_filter}
lib_deps =
${Heltec_lora32_v4.lib_deps}
${esp32_ota.lib_deps}
; PsychicMqttClient - unified MQTT client with WebSocket support
elims/PsychicMqttClient@^0.2.4
; Using latest ArduinoJson (7.x) - compatible with CayenneLPP without patching
bblanchon/ArduinoJson
arduino-libraries/NTPClient
JChristensen/Timezone
; Time library required by Timezone library (explicit dependency for compatibility)
paulstoffregen/Time
[env:heltec_v4_room_server]
+38
View File
@@ -98,6 +98,44 @@ lib_deps =
${LilyGo_T3S3_sx1262.lib_deps}
${esp32_ota.lib_deps}
[env:LilyGo_T3S3_sx1262_repeater_observer_mqtt]
extends = LilyGo_T3S3_sx1262
build_flags =
${LilyGo_T3S3_sx1262.build_flags}
-D DISPLAY_CLASS=SSD1306Display
-D ADVERT_NAME='"MQTT Observer"'
-D ADVERT_LAT=0.0
-D ADVERT_LON=0.0
-D ADMIN_PASSWORD='"password"'
-D MAX_NEIGHBOURS=50
-D WITH_MQTT_BRIDGE=1
-D MAX_MQTT_BROKERS=3
-D MQTT_MAX_PACKET_SIZE=1024
-D MQTT_DEBUG=1
-D MESH_PACKET_LOGGING=1
-D MESH_DEBUG=1
-D CONFIG_MBEDTLS_CERTIFICATE_BUNDLE=y
# -D WIFI_SSID='"ssid"'
# -D WIFI_PWD='"password"'
# -D MQTT_SERVER='"your-mqtt-broker.com"'
# -D MQTT_PORT=1883
# -D MQTT_USERNAME='"your-username"'
# -D MQTT_PASSWORD='"your-password"'
build_src_filter = ${LilyGo_T3S3_sx1262.build_src_filter}
+<helpers/bridges/MQTTBridge.cpp>
+<helpers/MQTTMessageBuilder.cpp>
+<helpers/JWTHelper.cpp>
+<helpers/ui/SSD1306Display.cpp>
+<../examples/simple_repeater>
lib_deps =
${LilyGo_T3S3_sx1262.lib_deps}
${esp32_ota.lib_deps}
elims/PsychicMqttClient@^0.2.4
bblanchon/ArduinoJson
arduino-libraries/NTPClient
JChristensen/Timezone
paulstoffregen/Time
[env:LilyGo_T3S3_sx1262_terminal_chat]
extends = LilyGo_T3S3_sx1262
build_flags =
@@ -94,6 +94,42 @@ lib_deps =
${T_Beam_S3_Supreme_SX1262.lib_deps}
${esp32_ota.lib_deps}
[env:T_Beam_S3_Supreme_SX1262_repeater_observer_mqtt]
extends = T_Beam_S3_Supreme_SX1262
build_flags =
${T_Beam_S3_Supreme_SX1262.build_flags}
-D ADVERT_NAME='"MQTT Observer"'
-D ADVERT_LAT=0
-D ADVERT_LON=0
-D ADMIN_PASSWORD='"password"'
-D MAX_NEIGHBOURS=50
-D WITH_MQTT_BRIDGE=1
-D MAX_MQTT_BROKERS=3
-D MQTT_MAX_PACKET_SIZE=1024
-D MQTT_DEBUG=1
-D MESH_PACKET_LOGGING=1
-D MESH_DEBUG=1
-D CONFIG_MBEDTLS_CERTIFICATE_BUNDLE=y
# -D WIFI_SSID='"ssid"'
# -D WIFI_PWD='"password"'
# -D MQTT_SERVER='"your-mqtt-broker.com"'
# -D MQTT_PORT=1883
# -D MQTT_USERNAME='"your-username"'
# -D MQTT_PASSWORD='"your-password"'
build_src_filter = ${T_Beam_S3_Supreme_SX1262.build_src_filter}
+<helpers/bridges/MQTTBridge.cpp>
+<helpers/MQTTMessageBuilder.cpp>
+<helpers/JWTHelper.cpp>
+<../examples/simple_repeater>
lib_deps =
${T_Beam_S3_Supreme_SX1262.lib_deps}
${esp32_ota.lib_deps}
elims/PsychicMqttClient@^0.2.4
bblanchon/ArduinoJson
arduino-libraries/NTPClient
JChristensen/Timezone
paulstoffregen/Time
[env:T_Beam_S3_Supreme_SX1262_room_server]
extends = T_Beam_S3_Supreme_SX1262
build_flags =
+2 -5
View File
@@ -243,12 +243,12 @@ lib_deps =
${Station_G2.lib_deps}
densaugeo/base64 @ ~1.4.0
[env:Station_G2_repeater_bridge_mqtt]
[env:Station_G2_repeater_observer_mqtt]
extends = Station_G2
board_build.partitions = default_16MB.csv ; standard 16MB partition table
build_flags =
${Station_G2.build_flags}
-D ADVERT_NAME='"MQTT Bridge"'
-D ADVERT_NAME='"MQTT Observer"'
-D ADVERT_LAT=0.0
-D ADVERT_LON=0.0
-D ADMIN_PASSWORD='"password"'
@@ -275,11 +275,8 @@ build_src_filter = ${Station_G2.build_src_filter}
lib_deps =
${Station_G2.lib_deps}
${esp32_ota.lib_deps}
; PsychicMqttClient - unified MQTT client with WebSocket support
elims/PsychicMqttClient@^0.2.4
; Using latest ArduinoJson (7.x) - compatible with CayenneLPP without patching
bblanchon/ArduinoJson
arduino-libraries/NTPClient
JChristensen/Timezone
; Time library required by Timezone library (explicit dependency for compatibility)
paulstoffregen/Time
+2 -2
View File
@@ -95,11 +95,11 @@ lib_deps =
${Xiao_S3_WIO.lib_deps}
${esp32_ota.lib_deps}
[env:Xiao_S3_WIO_repeater_bridge_mqtt]
[env:Xiao_S3_WIO_repeater_observer_mqtt]
extends = Xiao_S3_WIO
build_flags =
${Xiao_S3_WIO.build_flags}
-D ADVERT_NAME='"MQTT Bridge"'
-D ADVERT_NAME='"MQTT Observer"'
-D ADVERT_LAT=0.0
-D ADVERT_LON=0.0
-D ADMIN_PASSWORD='"password"'