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 aa242e786d
commit 304a32dba4
7 files changed
+18 -89

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]
-32
View File
@@ -136,38 +136,6 @@ lib_deps =
JChristensen/Timezone
paulstoffregen/Time
[env:LilyGo_T3S3_sx1262_room_server_observer_mqtt]
extends = LilyGo_T3S3_sx1262
build_flags =
${LilyGo_T3S3_sx1262.build_flags}
-D DISPLAY_CLASS=SSD1306Display
-D ADVERT_NAME='"T3S3-1262 Room Observer"'
-D ADVERT_LAT=0.0
-D ADVERT_LON=0.0
-D ADMIN_PASSWORD='"password"'
-D ROOM_PASSWORD='"hello"'
-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
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_room_server>
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 =
@@ -130,36 +130,6 @@ lib_deps =
JChristensen/Timezone
paulstoffregen/Time
[env:T_Beam_S3_Supreme_SX1262_room_server_observer_mqtt]
extends = T_Beam_S3_Supreme_SX1262
build_flags =
${T_Beam_S3_Supreme_SX1262.build_flags}
-D ADVERT_NAME='"T_Beam_S3_Supreme_SX1262 Room Observer"'
-D ADVERT_LAT=0
-D ADVERT_LON=0
-D ADMIN_PASSWORD='"password"'
-D ROOM_PASSWORD='"hello"'
-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
build_src_filter = ${T_Beam_S3_Supreme_SX1262.build_src_filter}
+<helpers/bridges/MQTTBridge.cpp>
+<helpers/MQTTMessageBuilder.cpp>
+<helpers/JWTHelper.cpp>
+<../examples/simple_room_server>
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
@@ -86,11 +86,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"'