Neighbors publication was gated on BOARD_HAS_PSRAM. Removing that gate alone was not enough: the feature built but was inert without PSRAM, because three allocation sites asked for MALLOC_CAP_SPIRAM (which returns null with no PSRAM), the bridge's persistent buffer was allocated inside a BOARD_HAS_PSRAM block, and neighborDiscoverReady() rejected every pass at runtime on psramFound(). The entry table also did not fit: finishNeighborDiscover put pubkey_hex[50][65] plus entries[50] on the stack, a 4752-byte frame against the mesh loop task's 8 KB. - Gate on MAX_NEIGHBOURS plus PSRAM or an explicit per-variant MQTT_NEIGHBORS_WITHOUT_PSRAM opt-in. - Move the entry table and its hex strings into one heap block sized to the pass; the frame drops from 4752 to 304 bytes. - Prefer PSRAM and fall back to internal DRAM in the mesh-side allocations and the ArduinoJson pool; hoist the bridge's persistent buffer out of the BOARD_HAS_PSRAM block (psram_malloc already falls back). - Keep the runtime psramFound() check only where the buffers are sized for PSRAM, so a board whose PSRAM failed to init still refuses. - Size for internal DRAM without PSRAM: 4 KB text buffer and 20 entries per publish, keeping the pool to a single block and the peak near 13 KB rather than ~35 KB. Oversized tables truncate and report total_neighbors as before. Enabled on the ESP32-S3 observer envs (Heltec V3/WSL3, RAK3112, Heltec Tracker v1.1/v2). Left off for the classic ESP32 T-LoRa V2.1-1.6, which is already limited to one active TLS slot. Costs ~7.4 KB static DRAM on repeaters and ~9.6 KB on room servers. The prefs layout is unchanged, so this is neutral for existing devices.
588 lines
17 KiB
INI
588 lines
17 KiB
INI
[Heltec_lora32_v3]
|
|
extends = esp32_base
|
|
board = esp32-s3-devkitc-1
|
|
build_flags =
|
|
${esp32_base.build_flags}
|
|
${sensor_base.build_flags}
|
|
-I variants/heltec_v3
|
|
-D HELTEC_LORA_V3
|
|
-D ESP32_CPU_FREQ=80
|
|
-D P_LORA_DIO_1=14
|
|
-D P_LORA_NSS=8
|
|
-D P_LORA_RESET=RADIOLIB_NC
|
|
-D P_LORA_BUSY=13
|
|
-D P_LORA_SCLK=9
|
|
-D P_LORA_MISO=11
|
|
-D P_LORA_MOSI=10
|
|
-D USE_SX1262
|
|
-D RADIO_CLASS=CustomSX1262
|
|
-D WRAPPER_CLASS=CustomSX1262Wrapper
|
|
-D LORA_TX_POWER=22
|
|
-D P_LORA_TX_LED=35
|
|
-D PIN_BOARD_SDA=17
|
|
-D PIN_BOARD_SCL=18
|
|
-D PIN_USER_BTN=0
|
|
-D PIN_VEXT_EN=36
|
|
-D SX126X_DIO2_AS_RF_SWITCH=true
|
|
-D SX126X_DIO3_TCXO_VOLTAGE=1.8
|
|
-D SX126X_CURRENT_LIMIT=140
|
|
-D SX126X_RX_BOOSTED_GAIN=1
|
|
-D PIN_GPS_RX=47
|
|
-D PIN_GPS_TX=48
|
|
-D PIN_GPS_EN=26
|
|
build_src_filter = ${esp32_base.build_src_filter}
|
|
+<../variants/heltec_v3>
|
|
+<helpers/sensors>
|
|
lib_deps =
|
|
${esp32_base.lib_deps}
|
|
${sensor_base.lib_deps}
|
|
|
|
[env:Heltec_v3_repeater]
|
|
extends = Heltec_lora32_v3
|
|
build_flags =
|
|
${Heltec_lora32_v3.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_v3.build_src_filter}
|
|
+<helpers/ui/SSD1306Display.cpp>
|
|
+<../examples/simple_repeater>
|
|
-<helpers/bridges/MQTTBridge.cpp>
|
|
-<helpers/MQTTMessageBuilder.cpp>
|
|
-<helpers/JWTHelper.cpp>
|
|
lib_deps =
|
|
${Heltec_lora32_v3.lib_deps}
|
|
${esp32_ota.lib_deps}
|
|
bakercp/CRC32 @ ^2.0.0
|
|
|
|
[env:Heltec_v3_repeater_bridge_rs232]
|
|
extends = Heltec_lora32_v3
|
|
build_flags =
|
|
${Heltec_lora32_v3.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_v3.build_src_filter}
|
|
+<helpers/bridges/RS232Bridge.cpp>
|
|
+<helpers/ui/SSD1306Display.cpp>
|
|
+<../examples/simple_repeater>
|
|
lib_deps =
|
|
${Heltec_lora32_v3.lib_deps}
|
|
${esp32_ota.lib_deps}
|
|
|
|
[env:Heltec_v3_repeater_bridge_espnow]
|
|
extends = Heltec_lora32_v3
|
|
build_flags =
|
|
${Heltec_lora32_v3.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_v3.build_src_filter}
|
|
+<helpers/bridges/ESPNowBridge.cpp>
|
|
+<helpers/ui/SSD1306Display.cpp>
|
|
+<../examples/simple_repeater>
|
|
lib_deps =
|
|
${Heltec_lora32_v3.lib_deps}
|
|
${esp32_ota.lib_deps}
|
|
|
|
[env:Heltec_v3_repeater_observer_mqtt]
|
|
extends = Heltec_lora32_v3
|
|
upload_port = /dev/cu.usbserial-4
|
|
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_v3.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
|
|
; Non-PSRAM board: neighbors table costs ~4 KB of internal DRAM (see MQTTBridge.h).
|
|
-D MQTT_NEIGHBORS_WITHOUT_PSRAM=1
|
|
-D MAX_MQTT_BROKERS=3
|
|
-D MQTT_MAX_PACKET_SIZE=1024
|
|
-D MQTT_DEBUG=1
|
|
; Periodic 30s heap/pub-stats serial log — enable only for debugging (use `get mqtt.stats` on demand instead).
|
|
; -D MQTT_MEMORY_DEBUG=1
|
|
; Keep default observer profile less verbose to reduce runtime contention.
|
|
; -D MESH_PACKET_LOGGING=1
|
|
; -D MESH_DEBUG=1
|
|
-D CONFIG_MBEDTLS_CERTIFICATE_BUNDLE=y
|
|
-D ESP32_CPU_FREQ=160
|
|
-D MQTT_WIFI_TX_POWER=WIFI_POWER_11dBm
|
|
-D WITH_SNMP=1
|
|
# -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 = ${Heltec_lora32_v3.build_src_filter}
|
|
+<helpers/bridges/MQTTBridge.cpp>
|
|
+<helpers/MQTTMessageBuilder.cpp>
|
|
+<helpers/JWTHelper.cpp>
|
|
+<helpers/SNMPAgent.cpp>
|
|
+<helpers/ui/SSD1306Display.cpp>
|
|
+<../examples/simple_repeater>
|
|
lib_deps =
|
|
${Heltec_lora32_v3.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
|
|
|
|
; Emulator build (Wokwi): identical to the observer above but with the LoRa radio
|
|
; stubbed (SIM_BUILD -> SimRadio) and WiFi pre-seeded to the Wokwi network so it
|
|
; boots straight into WiFi/MQTT/CLI without hardware or flashing. See wokwi/.
|
|
[env:Heltec_v3_repeater_observer_mqtt_sim]
|
|
extends = env:Heltec_v3_repeater_observer_mqtt
|
|
build_flags =
|
|
${env:Heltec_v3_repeater_observer_mqtt.build_flags}
|
|
-D SIM_BUILD=1
|
|
-D SIM_WIFI_SSID='"Wokwi-GUEST"'
|
|
|
|
[env:Heltec_v3_room_server]
|
|
extends = Heltec_lora32_v3
|
|
build_flags =
|
|
${Heltec_lora32_v3.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_v3.build_src_filter}
|
|
+<helpers/ui/SSD1306Display.cpp>
|
|
+<../examples/simple_room_server>
|
|
lib_deps =
|
|
${Heltec_lora32_v3.lib_deps}
|
|
${esp32_ota.lib_deps}
|
|
|
|
[env:Heltec_v3_room_server_observer_mqtt]
|
|
extends = Heltec_lora32_v3
|
|
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_v3.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
|
|
; Non-PSRAM board: neighbors table costs ~4 KB of internal DRAM (see MQTTBridge.h).
|
|
-D MQTT_NEIGHBORS_WITHOUT_PSRAM=1
|
|
-D MAX_NEIGHBOURS=50
|
|
-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 ESP32_CPU_FREQ=160
|
|
-D MQTT_WIFI_TX_POWER=WIFI_POWER_11dBm
|
|
-D WITH_SNMP=1
|
|
build_src_filter = ${Heltec_lora32_v3.build_src_filter}
|
|
+<helpers/ui/SSD1306Display.cpp>
|
|
+<helpers/bridges/MQTTBridge.cpp>
|
|
+<helpers/MQTTMessageBuilder.cpp>
|
|
+<helpers/JWTHelper.cpp>
|
|
+<helpers/SNMPAgent.cpp>
|
|
+<../examples/simple_room_server>
|
|
lib_deps =
|
|
${Heltec_lora32_v3.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_v3_terminal_chat]
|
|
extends = Heltec_lora32_v3
|
|
build_flags =
|
|
${Heltec_lora32_v3.build_flags}
|
|
-D MAX_CONTACTS=350
|
|
-D MAX_GROUP_CHANNELS=1
|
|
; -D MESH_PACKET_LOGGING=1
|
|
; -D MESH_DEBUG=1
|
|
build_src_filter = ${Heltec_lora32_v3.build_src_filter}
|
|
+<../examples/simple_secure_chat/main.cpp>
|
|
lib_deps =
|
|
${Heltec_lora32_v3.lib_deps}
|
|
densaugeo/base64 @ ~1.4.0
|
|
|
|
[env:Heltec_v3_companion_radio_usb]
|
|
extends = Heltec_lora32_v3
|
|
build_flags =
|
|
${Heltec_lora32_v3.build_flags}
|
|
-I examples/companion_radio/ui-new
|
|
-D MAX_CONTACTS=350
|
|
-D MAX_GROUP_CHANNELS=40
|
|
-D DISPLAY_CLASS=SSD1306Display
|
|
-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_v3.build_src_filter}
|
|
+<helpers/ui/SSD1306Display.cpp>
|
|
+<helpers/ui/MomentaryButton.cpp>
|
|
+<../examples/companion_radio/*.cpp>
|
|
+<../examples/companion_radio/ui-new/*.cpp>
|
|
lib_deps =
|
|
${Heltec_lora32_v3.lib_deps}
|
|
densaugeo/base64 @ ~1.4.0
|
|
|
|
[env:Heltec_v3_companion_radio_ble]
|
|
extends = Heltec_lora32_v3
|
|
build_flags =
|
|
${Heltec_lora32_v3.build_flags}
|
|
-I examples/companion_radio/ui-new
|
|
-D MAX_CONTACTS=350
|
|
-D MAX_GROUP_CHANNELS=40
|
|
-D DISPLAY_CLASS=SSD1306Display
|
|
-D BLE_PIN_CODE=123456 ; dynamic, random PIN
|
|
-D AUTO_SHUTDOWN_MILLIVOLTS=3400
|
|
-D BLE_DEBUG_LOGGING=1
|
|
-D OFFLINE_QUEUE_SIZE=256
|
|
; -D MESH_PACKET_LOGGING=1
|
|
; -D MESH_DEBUG=1
|
|
build_src_filter = ${Heltec_lora32_v3.build_src_filter}
|
|
+<helpers/ui/SSD1306Display.cpp>
|
|
+<helpers/ui/MomentaryButton.cpp>
|
|
+<helpers/esp32/*.cpp>
|
|
+<../examples/companion_radio/*.cpp>
|
|
+<../examples/companion_radio/ui-new/*.cpp>
|
|
lib_deps =
|
|
${Heltec_lora32_v3.lib_deps}
|
|
densaugeo/base64 @ ~1.4.0
|
|
|
|
[env:Heltec_v3_companion_radio_wifi]
|
|
extends = Heltec_lora32_v3
|
|
build_flags =
|
|
${Heltec_lora32_v3.build_flags}
|
|
-I examples/companion_radio/ui-new
|
|
-D MAX_CONTACTS=350
|
|
-D MAX_GROUP_CHANNELS=40
|
|
-D DISPLAY_CLASS=SSD1306Display
|
|
-D WIFI_DEBUG_LOGGING=1
|
|
-D WIFI_SSID='"myssid"'
|
|
-D WIFI_PWD='"mypwd"'
|
|
-D OFFLINE_QUEUE_SIZE=256
|
|
; -D MESH_PACKET_LOGGING=1
|
|
; -D MESH_DEBUG=1
|
|
build_src_filter = ${Heltec_lora32_v3.build_src_filter}
|
|
+<helpers/ui/SSD1306Display.cpp>
|
|
+<helpers/ui/MomentaryButton.cpp>
|
|
+<helpers/esp32/*.cpp>
|
|
+<../examples/companion_radio/*.cpp>
|
|
+<../examples/companion_radio/ui-new/*.cpp>
|
|
lib_deps =
|
|
${Heltec_lora32_v3.lib_deps}
|
|
densaugeo/base64 @ ~1.4.0
|
|
|
|
[env:Heltec_v3_sensor]
|
|
extends = Heltec_lora32_v3
|
|
build_flags =
|
|
${Heltec_lora32_v3.build_flags}
|
|
-D ADVERT_NAME='"Heltec v3 Sensor"'
|
|
-D ADVERT_LAT=0.0
|
|
-D ADVERT_LON=0.0
|
|
-D ADMIN_PASSWORD='"password"'
|
|
-D ENV_PIN_SDA=33
|
|
-D ENV_PIN_SCL=34
|
|
-D DISPLAY_CLASS=SSD1306Display
|
|
; -D MESH_PACKET_LOGGING=1
|
|
; -D MESH_DEBUG=1
|
|
build_src_filter = ${Heltec_lora32_v3.build_src_filter}
|
|
+<helpers/ui/SSD1306Display.cpp>
|
|
+<../examples/simple_sensor>
|
|
lib_deps =
|
|
${Heltec_lora32_v3.lib_deps}
|
|
${esp32_ota.lib_deps}
|
|
|
|
[env:Heltec_WSL3_repeater]
|
|
extends = Heltec_lora32_v3
|
|
build_flags =
|
|
${Heltec_lora32_v3.build_flags}
|
|
-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_v3.build_src_filter}
|
|
+<../examples/simple_repeater>
|
|
-<helpers/bridges/MQTTBridge.cpp>
|
|
-<helpers/MQTTMessageBuilder.cpp>
|
|
-<helpers/JWTHelper.cpp>
|
|
lib_deps =
|
|
${Heltec_lora32_v3.lib_deps}
|
|
${esp32_ota.lib_deps}
|
|
bakercp/CRC32 @ ^2.0.0
|
|
|
|
[env:Heltec_WSL3_repeater_bridge_rs232]
|
|
extends = Heltec_lora32_v3
|
|
build_flags =
|
|
${Heltec_lora32_v3.build_flags}
|
|
-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_v3.build_src_filter}
|
|
+<helpers/bridges/RS232Bridge.cpp>
|
|
+<../examples/simple_repeater>
|
|
lib_deps =
|
|
${Heltec_lora32_v3.lib_deps}
|
|
${esp32_ota.lib_deps}
|
|
bakercp/CRC32 @ ^2.0.0
|
|
|
|
[env:Heltec_WSL3_repeater_bridge_espnow]
|
|
extends = Heltec_lora32_v3
|
|
build_flags =
|
|
${Heltec_lora32_v3.build_flags}
|
|
-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_v3.build_src_filter}
|
|
+<helpers/bridges/ESPNowBridge.cpp>
|
|
+<../examples/simple_repeater>
|
|
lib_deps =
|
|
${Heltec_lora32_v3.lib_deps}
|
|
${esp32_ota.lib_deps}
|
|
bakercp/CRC32 @ ^2.0.0
|
|
|
|
[env:Heltec_WSL3_room_server]
|
|
extends = Heltec_lora32_v3
|
|
build_src_filter = ${Heltec_lora32_v3.build_src_filter}
|
|
+<../examples/simple_room_server>
|
|
build_flags =
|
|
${Heltec_lora32_v3.build_flags}
|
|
-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
|
|
lib_deps =
|
|
${Heltec_lora32_v3.lib_deps}
|
|
${esp32_ota.lib_deps}
|
|
|
|
[env:Heltec_WSL3_companion_radio_ble]
|
|
extends = Heltec_lora32_v3
|
|
build_flags =
|
|
${Heltec_lora32_v3.build_flags}
|
|
-D MAX_CONTACTS=350
|
|
-D MAX_GROUP_CHANNELS=40
|
|
-D BLE_PIN_CODE=123456
|
|
-D BLE_DEBUG_LOGGING=1
|
|
-D OFFLINE_QUEUE_SIZE=256
|
|
; -D MESH_PACKET_LOGGING=1
|
|
; -D MESH_DEBUG=1
|
|
build_src_filter = ${Heltec_lora32_v3.build_src_filter}
|
|
+<helpers/esp32/*.cpp>
|
|
+<../examples/companion_radio/*.cpp>
|
|
lib_deps =
|
|
${Heltec_lora32_v3.lib_deps}
|
|
densaugeo/base64 @ ~1.4.0
|
|
|
|
[env:Heltec_WSL3_companion_radio_usb]
|
|
extends = Heltec_lora32_v3
|
|
build_flags =
|
|
${Heltec_lora32_v3.build_flags}
|
|
-D MAX_CONTACTS=350
|
|
-D MAX_GROUP_CHANNELS=40
|
|
-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_v3.build_src_filter}
|
|
+<../examples/companion_radio/*.cpp>
|
|
lib_deps =
|
|
${Heltec_lora32_v3.lib_deps}
|
|
densaugeo/base64 @ ~1.4.0
|
|
|
|
[env:Heltec_WSL3_companion_radio_wifi]
|
|
extends = Heltec_lora32_v3
|
|
build_flags =
|
|
${Heltec_lora32_v3.build_flags}
|
|
-D MAX_CONTACTS=350
|
|
-D MAX_GROUP_CHANNELS=40
|
|
-D WIFI_DEBUG_LOGGING=1
|
|
-D WIFI_SSID='"myssid"'
|
|
-D WIFI_PWD='"mypwd"'
|
|
-D OFFLINE_QUEUE_SIZE=256
|
|
; -D MESH_PACKET_LOGGING=1
|
|
; -D MESH_DEBUG=1
|
|
build_src_filter = ${Heltec_lora32_v3.build_src_filter}
|
|
+<helpers/esp32/*.cpp>
|
|
+<../examples/companion_radio/*.cpp>
|
|
lib_deps =
|
|
${Heltec_lora32_v3.lib_deps}
|
|
densaugeo/base64 @ ~1.4.0
|
|
|
|
[env:Heltec_WSL3_sensor]
|
|
extends = Heltec_lora32_v3
|
|
build_flags =
|
|
${Heltec_lora32_v3.build_flags}
|
|
-D ADVERT_NAME='"Heltec Sensor"'
|
|
-D ADVERT_LAT=0.0
|
|
-D ADVERT_LON=0.0
|
|
-D ADMIN_PASSWORD='"password"'
|
|
; -D MESH_PACKET_LOGGING=1
|
|
; -D MESH_DEBUG=1
|
|
build_src_filter = ${Heltec_lora32_v3.build_src_filter}
|
|
+<../examples/simple_sensor>
|
|
lib_deps =
|
|
${Heltec_lora32_v3.lib_deps}
|
|
${esp32_ota.lib_deps}
|
|
|
|
[env:Heltec_WSL3_repeater_observer_mqtt]
|
|
extends = Heltec_lora32_v3
|
|
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_v3.build_flags}
|
|
-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
|
|
; Non-PSRAM board: neighbors table costs ~4 KB of internal DRAM (see MQTTBridge.h).
|
|
-D MQTT_NEIGHBORS_WITHOUT_PSRAM=1
|
|
-D MAX_MQTT_BROKERS=3
|
|
-D MQTT_MAX_PACKET_SIZE=1024
|
|
-D MQTT_DEBUG=1
|
|
; Periodic 30s heap/pub-stats serial log — enable only for debugging (use `get mqtt.stats` on demand instead).
|
|
; -D MQTT_MEMORY_DEBUG=1
|
|
; Keep default observer profile less verbose to reduce runtime contention.
|
|
; -D MESH_PACKET_LOGGING=1
|
|
; -D MESH_DEBUG=1
|
|
-D CONFIG_MBEDTLS_CERTIFICATE_BUNDLE=y
|
|
-D ESP32_CPU_FREQ=160
|
|
-D MQTT_WIFI_TX_POWER=WIFI_POWER_11dBm
|
|
-D WITH_SNMP=1
|
|
# -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 = ${Heltec_lora32_v3.build_src_filter}
|
|
+<helpers/bridges/MQTTBridge.cpp>
|
|
+<helpers/MQTTMessageBuilder.cpp>
|
|
+<helpers/JWTHelper.cpp>
|
|
+<helpers/SNMPAgent.cpp>
|
|
+<../examples/simple_repeater>
|
|
lib_deps =
|
|
${Heltec_lora32_v3.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_WSL3_room_server_observer_mqtt]
|
|
extends = Heltec_lora32_v3
|
|
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_v3.build_flags}
|
|
-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
|
|
; Non-PSRAM board: neighbors table costs ~4 KB of internal DRAM (see MQTTBridge.h).
|
|
-D MQTT_NEIGHBORS_WITHOUT_PSRAM=1
|
|
-D MAX_NEIGHBOURS=50
|
|
-D MAX_MQTT_BROKERS=3
|
|
-D MQTT_MAX_PACKET_SIZE=1024
|
|
-D MQTT_DEBUG=1
|
|
; Keep default observer profile less verbose to reduce runtime contention.
|
|
; -D MESH_PACKET_LOGGING=1
|
|
; -D MESH_DEBUG=1
|
|
-D CONFIG_MBEDTLS_CERTIFICATE_BUNDLE=y
|
|
-D ESP32_CPU_FREQ=160
|
|
-D MQTT_WIFI_TX_POWER=WIFI_POWER_11dBm
|
|
-D WITH_SNMP=1
|
|
build_src_filter = ${Heltec_lora32_v3.build_src_filter}
|
|
+<helpers/bridges/MQTTBridge.cpp>
|
|
+<helpers/MQTTMessageBuilder.cpp>
|
|
+<helpers/JWTHelper.cpp>
|
|
+<helpers/SNMPAgent.cpp>
|
|
+<../examples/simple_room_server>
|
|
lib_deps =
|
|
${Heltec_lora32_v3.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_v3_kiss_modem]
|
|
extends = Heltec_lora32_v3
|
|
build_src_filter = ${Heltec_lora32_v3.build_src_filter}
|
|
+<../examples/kiss_modem/>
|