mirror of
https://github.com/agessaman/MeshCore.git
synced 2026-10-22 13:11:35 +00:00
Heltec_v2_repeater_observer_mqtt and Heltec_v2_room_server_observer_mqtt, modelled on the Heltec V3 observer envs. The V2 is a classic ESP32 without PSRAM, so like the T-LoRa observer it is documented as one active WSS broker and leaves MQTT_NEIGHBORS_WITHOUT_PSRAM off. Its 8 MB flash and the board's default_8MB.csv layout fit the image (48% of the app slot), so no partition change or erase is needed.
295 lines
8.3 KiB
INI
295 lines
8.3 KiB
INI
[Heltec_lora32_v2]
|
|
extends = esp32_base
|
|
board = heltec_wifi_lora_32_V2 ; heltec_wifi_lora_32_V2
|
|
build_flags =
|
|
${esp32_base.build_flags}
|
|
-I variants/heltec_v2
|
|
-D HELTEC_LORA_V2
|
|
-D RADIO_CLASS=CustomSX1276
|
|
-D WRAPPER_CLASS=CustomSX1276Wrapper
|
|
-D P_LORA_DIO_0=26
|
|
-D P_LORA_DIO_1=35
|
|
-D P_LORA_NSS=18
|
|
-D P_LORA_RESET=14
|
|
-D P_LORA_SCLK=5
|
|
-D P_LORA_MISO=19
|
|
-D P_LORA_MOSI=27
|
|
-D P_LORA_TX_LED=25
|
|
-D SX127X_CURRENT_LIMIT=120
|
|
-D LORA_TX_POWER=20
|
|
-D PIN_BOARD_SDA=4
|
|
-D PIN_BOARD_SCL=15
|
|
-D PIN_USER_BTN=0
|
|
-D PIN_OLED_RESET=16
|
|
build_src_filter = ${esp32_base.build_src_filter}
|
|
+<../variants/heltec_v2>
|
|
lib_deps =
|
|
${esp32_base.lib_deps}
|
|
adafruit/Adafruit SSD1306 @ ^2.5.13
|
|
|
|
[env:Heltec_v2_repeater]
|
|
extends = Heltec_lora32_v2
|
|
build_flags =
|
|
${Heltec_lora32_v2.build_flags}
|
|
-D DISPLAY_CLASS=SSD1306Display
|
|
-D ADVERT_NAME='"Heltec Repeater"'
|
|
-D ADVERT_LAT=0.0
|
|
-D ADVERT_LON=0.0
|
|
-D ADMIN_PASSWORD='"password"'
|
|
-D MAX_NEIGHBOURS=50
|
|
; -D MESH_PACKET_LOGGING=1
|
|
; -D MESH_DEBUG=1
|
|
build_src_filter = ${Heltec_lora32_v2.build_src_filter}
|
|
+<../examples/simple_repeater>
|
|
+<helpers/ui/SSD1306Display.cpp>
|
|
+<helpers/ui/MomentaryButton.cpp>
|
|
lib_deps =
|
|
${Heltec_lora32_v2.lib_deps}
|
|
${esp32_ota.lib_deps}
|
|
|
|
; [env:Heltec_v2_repeater_bridge_rs232]
|
|
; extends = Heltec_lora32_v2
|
|
; build_flags =
|
|
; ${Heltec_lora32_v2.build_flags}
|
|
; -D DISPLAY_CLASS=SSD1306Display
|
|
; -D ADVERT_NAME='"RS232 Bridge"'
|
|
; -D ADVERT_LAT=0.0
|
|
; -D ADVERT_LON=0.0
|
|
; -D ADMIN_PASSWORD='"password"'
|
|
; -D MAX_NEIGHBOURS=50
|
|
; -D WITH_RS232_BRIDGE=Serial2
|
|
; -D WITH_RS232_BRIDGE_RX=5
|
|
; -D WITH_RS232_BRIDGE_TX=6
|
|
; -D BRIDGE_DEBUG=1
|
|
; ; -D MESH_PACKET_LOGGING=1
|
|
; ; -D MESH_DEBUG=1
|
|
; build_src_filter = ${Heltec_lora32_v2.build_src_filter}
|
|
; +<helpers/bridges/RS232Bridge.cpp>
|
|
; +<helpers/ui/SSD1306Display.cpp>
|
|
; +<helpers/ui/MomentaryButton.cpp>
|
|
; +<../examples/simple_repeater>
|
|
; lib_deps =
|
|
; ${Heltec_lora32_v2.lib_deps}
|
|
; ${esp32_ota.lib_deps}
|
|
|
|
[env:Heltec_v2_repeater_bridge_espnow]
|
|
extends = Heltec_lora32_v2
|
|
build_flags =
|
|
${Heltec_lora32_v2.build_flags}
|
|
-D DISPLAY_CLASS=SSD1306Display
|
|
-D ADVERT_NAME='"ESPNow Bridge"'
|
|
-D ADVERT_LAT=0.0
|
|
-D ADVERT_LON=0.0
|
|
-D ADMIN_PASSWORD='"password"'
|
|
-D MAX_NEIGHBOURS=50
|
|
-D WITH_ESPNOW_BRIDGE=1
|
|
; -D BRIDGE_DEBUG=1
|
|
; -D MESH_PACKET_LOGGING=1
|
|
; -D MESH_DEBUG=1
|
|
build_src_filter = ${Heltec_lora32_v2.build_src_filter}
|
|
+<helpers/bridges/ESPNowBridge.cpp>
|
|
+<helpers/ui/SSD1306Display.cpp>
|
|
+<helpers/ui/MomentaryButton.cpp>
|
|
+<../examples/simple_repeater>
|
|
lib_deps =
|
|
${Heltec_lora32_v2.lib_deps}
|
|
${esp32_ota.lib_deps}
|
|
|
|
[env:Heltec_v2_room_server]
|
|
extends = Heltec_lora32_v2
|
|
build_flags =
|
|
${Heltec_lora32_v2.build_flags}
|
|
-D DISPLAY_CLASS=SSD1306Display
|
|
-D ADVERT_NAME='"Heltec Room"'
|
|
-D ADVERT_LAT=0.0
|
|
-D ADVERT_LON=0.0
|
|
-D ADMIN_PASSWORD='"password"'
|
|
-D ROOM_PASSWORD='"hello"'
|
|
; -D MESH_PACKET_LOGGING=1
|
|
; -D MESH_DEBUG=1
|
|
build_src_filter = ${Heltec_lora32_v2.build_src_filter}
|
|
+<helpers/ui/SSD1306Display.cpp>
|
|
+<helpers/ui/MomentaryButton.cpp>
|
|
+<../examples/simple_room_server>
|
|
lib_deps =
|
|
${Heltec_lora32_v2.lib_deps}
|
|
${esp32_ota.lib_deps}
|
|
|
|
; MQTT observer builds. Classic ESP32 without PSRAM: like the T-LoRa observer, plan
|
|
; on one active WSS broker, and leave MQTT_NEIGHBORS_WITHOUT_PSRAM off so the TLS
|
|
; stack keeps the internal heap (see MQTT_IMPLEMENTATION.md).
|
|
[env:Heltec_v2_repeater_observer_mqtt]
|
|
extends = Heltec_lora32_v2
|
|
extra_scripts =
|
|
${esp32_base.extra_scripts}
|
|
pre:scripts/generate_cert_bundle.py
|
|
board_ssl_cert_source = adafruit
|
|
board_build.embed_files = src/certs/x509_crt_bundle.bin
|
|
build_flags =
|
|
${Heltec_lora32_v2.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 MQTT_MAX_PACKET_SIZE=1024
|
|
-D MQTT_DEBUG=1
|
|
; -D MQTT_MEMORY_DEBUG=1
|
|
; -D MESH_PACKET_LOGGING=1
|
|
; -D MESH_DEBUG=1
|
|
-D CONFIG_MBEDTLS_CERTIFICATE_BUNDLE=y
|
|
-D ESP32_CPU_FREQ=160
|
|
-D WITH_SNMP=1
|
|
# -D WIFI_SSID='"ssid"'
|
|
# -D WIFI_PWD='"password"'
|
|
build_src_filter = ${Heltec_lora32_v2.build_src_filter}
|
|
+<helpers/bridges/MQTTBridge.cpp>
|
|
+<helpers/MQTTMessageBuilder.cpp>
|
|
+<helpers/JWTHelper.cpp>
|
|
+<helpers/SNMPAgent.cpp>
|
|
+<helpers/ui/SSD1306Display.cpp>
|
|
+<helpers/ui/MomentaryButton.cpp>
|
|
+<../examples/simple_repeater>
|
|
lib_deps =
|
|
${Heltec_lora32_v2.lib_deps}
|
|
${esp32_ota.lib_deps}
|
|
elims/PsychicMqttClient@^0.2.4
|
|
bblanchon/ArduinoJson @ 7.4.3
|
|
arduino-libraries/NTPClient
|
|
JChristensen/Timezone
|
|
0neblock/SNMP_Agent
|
|
paulstoffregen/Time@1.6.1
|
|
|
|
[env:Heltec_v2_room_server_observer_mqtt]
|
|
extends = Heltec_lora32_v2
|
|
extra_scripts =
|
|
${esp32_base.extra_scripts}
|
|
pre:scripts/generate_cert_bundle.py
|
|
board_ssl_cert_source = adafruit
|
|
board_build.embed_files = src/certs/x509_crt_bundle.bin
|
|
build_flags =
|
|
${Heltec_lora32_v2.build_flags}
|
|
-D DISPLAY_CLASS=SSD1306Display
|
|
-D ADVERT_NAME='"Heltec 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_NEIGHBOURS=50
|
|
-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 ESP32_CPU_FREQ=160
|
|
-D WITH_SNMP=1
|
|
build_src_filter = ${Heltec_lora32_v2.build_src_filter}
|
|
+<helpers/ui/SSD1306Display.cpp>
|
|
+<helpers/ui/MomentaryButton.cpp>
|
|
+<helpers/bridges/MQTTBridge.cpp>
|
|
+<helpers/MQTTMessageBuilder.cpp>
|
|
+<helpers/JWTHelper.cpp>
|
|
+<helpers/SNMPAgent.cpp>
|
|
+<../examples/simple_room_server>
|
|
lib_deps =
|
|
${Heltec_lora32_v2.lib_deps}
|
|
${esp32_ota.lib_deps}
|
|
elims/PsychicMqttClient@^0.2.4
|
|
bblanchon/ArduinoJson @ 7.4.3
|
|
arduino-libraries/NTPClient
|
|
JChristensen/Timezone
|
|
paulstoffregen/Time@1.6.1
|
|
0neblock/SNMP_Agent
|
|
|
|
[env:Heltec_v2_terminal_chat]
|
|
extends = Heltec_lora32_v2
|
|
build_flags =
|
|
${Heltec_lora32_v2.build_flags}
|
|
-D MAX_CONTACTS=160
|
|
-D MAX_GROUP_CHANNELS=1
|
|
; -D MESH_PACKET_LOGGING=1
|
|
; -D MESH_DEBUG=1
|
|
build_src_filter = ${Heltec_lora32_v2.build_src_filter}
|
|
+<../examples/simple_secure_chat/main.cpp>
|
|
lib_deps =
|
|
${Heltec_lora32_v2.lib_deps}
|
|
densaugeo/base64 @ ~1.4.0
|
|
|
|
[env:Heltec_v2_companion_radio_usb]
|
|
extends = Heltec_lora32_v2
|
|
build_flags =
|
|
${Heltec_lora32_v2.build_flags}
|
|
-I examples/companion_radio/ui-new
|
|
-D DISPLAY_CLASS=SSD1306Display
|
|
-D MAX_CONTACTS=160
|
|
-D MAX_GROUP_CHANNELS=8
|
|
-D ENABLE_USB_INTERFACE
|
|
; NOTE: DO NOT ENABLE --> -D MESH_PACKET_LOGGING=1
|
|
; NOTE: DO NOT ENABLE --> -D MESH_DEBUG=1
|
|
build_src_filter = ${Heltec_lora32_v2.build_src_filter}
|
|
+<helpers/esp32/*.cpp>
|
|
+<helpers/ui/SSD1306Display.cpp>
|
|
+<helpers/ui/MomentaryButton.cpp>
|
|
+<../examples/companion_radio/*.cpp>
|
|
+<../examples/companion_radio/ui-new/*.cpp>
|
|
lib_deps =
|
|
${Heltec_lora32_v2.lib_deps}
|
|
densaugeo/base64 @ ~1.4.0
|
|
|
|
[env:Heltec_v2_companion_radio_ble]
|
|
extends = Heltec_lora32_v2
|
|
build_flags =
|
|
${Heltec_lora32_v2.build_flags}
|
|
-I examples/companion_radio/ui-new
|
|
-D DISPLAY_CLASS=SSD1306Display
|
|
-D MAX_CONTACTS=160
|
|
-D MAX_GROUP_CHANNELS=8
|
|
-D BLE_PIN_CODE=123456
|
|
-D BLE_DEBUG_LOGGING=1
|
|
-D OFFLINE_QUEUE_SIZE=128
|
|
; -D MESH_PACKET_LOGGING=1
|
|
; -D MESH_DEBUG=1
|
|
build_src_filter = ${Heltec_lora32_v2.build_src_filter}
|
|
+<helpers/esp32/*.cpp>
|
|
+<helpers/ui/SSD1306Display.cpp>
|
|
+<helpers/ui/MomentaryButton.cpp>
|
|
+<../examples/companion_radio/*.cpp>
|
|
+<../examples/companion_radio/ui-new/*.cpp>
|
|
lib_deps =
|
|
${Heltec_lora32_v2.lib_deps}
|
|
densaugeo/base64 @ ~1.4.0
|
|
|
|
[env:Heltec_v2_companion_radio_wifi]
|
|
extends = Heltec_lora32_v2
|
|
build_flags =
|
|
${Heltec_lora32_v2.build_flags}
|
|
-I examples/companion_radio/ui-new
|
|
-D ENABLE_WIFI_INTERFACE
|
|
-D DISPLAY_CLASS=SSD1306Display
|
|
-D MAX_CONTACTS=160
|
|
-D MAX_GROUP_CHANNELS=8
|
|
-D WIFI_DEBUG_LOGGING=1
|
|
-D WIFI_SSID='"myssid"'
|
|
-D WIFI_PWD='"mypwd"'
|
|
-D OFFLINE_QUEUE_SIZE=128
|
|
; -D MESH_PACKET_LOGGING=1
|
|
; -D MESH_DEBUG=1
|
|
build_src_filter = ${Heltec_lora32_v2.build_src_filter}
|
|
+<helpers/esp32/*.cpp>
|
|
+<helpers/wifi/*.cpp>
|
|
+<helpers/ui/SSD1306Display.cpp>
|
|
+<helpers/ui/MomentaryButton.cpp>
|
|
+<../examples/companion_radio/*.cpp>
|
|
+<../examples/companion_radio/ui-new/*.cpp>
|
|
lib_deps =
|
|
${Heltec_lora32_v2.lib_deps}
|
|
densaugeo/base64 @ ~1.4.0
|
|
|
|
[env:Heltec_v2_kiss_modem]
|
|
extends = Heltec_lora32_v2
|
|
build_src_filter = ${Heltec_lora32_v2.build_src_filter}
|
|
+<../examples/kiss_modem/>
|