[LORA] Improvements, change frequency, webUI, Oled support, add boards (#1742)

* [LORA] Capability to change LORA frequency and Add OLED

Merge of the 2 environments for TTGO V1

* Merge messages keys with upper level json

* Id as a sub topic

* Add display and state measures

* Add frequency configuration through WebUI

* Add parameters

* Add auto discovery

* Add node example for ttgo lora32 v1

* Add environments and fix scope

* Support for sync word as a byte

* Fix TX Power setting

* Add LoRa gateway description

* Add onlyknown filter
This commit is contained in:
Florian authored and GitHub committed 2023-09-27 11:12:55 -05:00
1 parent 3d20995b3a
commit 246423a8a8
18 files changed
+990 -121

No files matched your search

+27 -37
View File
@@ -869,33 +869,50 @@ board_build.flash_mode = dio
custom_description = BLE gateway
custom_hardware = ESP32 TinyPICO
[env:ttgo-lora32-v1-868]
[env:ttgo-lora32-v1]
platform = ${com.esp32_platform}
board = ttgo-lora32-v1
lib_deps =
${com-esp32.lib_deps}
${libraries.ssd1306}
${libraries.lora}
build_flags =
${com-esp32.build_flags}
'-DZgatewayLORA="LORA"'
'-DLORA_BAND=868E6'
'-DZdisplaySSD1306="LilyGo_SSD1306"'
'-DSDA_OLED=4'
'-DSCL_OLED=15'
'-DRST_OLED=16'
'-DWIFI_LoRa_32=true'
'-DGateway_Name="OMG_ESP32_LORA"'
custom_description = LORA communication 868Mhz using arduino-LoRA
custom_description = LORA communication using arduino-LoRA configurable frequency
custom_hardware= ESP32 TTGO LORA V1
[env:ttgo-lora32-v1-915]
[env:ttgo-lora32-v21]
platform = ${com.esp32_platform}
board = ttgo-lora32-v1
board = ttgo-lora32-v21
lib_deps =
${com-esp32.lib_deps}
${libraries.ssd1306}
${libraries.lora}
build_flags =
${com-esp32.build_flags}
'-DZgatewayLORA="LORA"'
'-DLORA_BAND=915E6'
; *** OpenMQTTGateway Config ***
;'-UZmqttDiscovery' ; disables MQTT Discovery
'-DGateway_Name="OMG_ESP32_LORA"'
custom_description = LORA communication 915Mhz using arduino-LoRA
custom_hardware= ESP32 TTGO LORA V1
; *** OpenMQTTGateway Modules ***
'-DZgatewayLORA="LORA"'
; *** ssd1306 Display Options ***
'-DZdisplaySSD1306="LilyGo_SSD1306"'
; '-DLOG_TO_OLED=true' ; Enable log to OLED
; '-DJSON_TO_OLED=true'
; '-DLOG_LEVEL_OLED=LOG_LEVEL_NOTICE'
; '-DDISPLAY_IDLE_LOGO=false'
; '-DDISPLAY_BRIGHTNESS=80'
; '-DDISPLAY_METRIC=false'
custom_description = For ESP32, Gateway using LORA
custom_hardware = ESP32 LILYGO LoRa32 V2.1
[env:ttgo-t-beam]
# See version pinout differences here
@@ -928,7 +945,7 @@ build_flags =
custom_description = BLE gateway with battery holder
custom_hardware = TTGO T BEAM
[env:heltec-wifi-lora-32-868] ; Heltec ESP32 Board with SSD1306 display
[env:heltec-wifi-lora-32] ; Heltec ESP32 Board with SSD1306 display
platform = ${com.esp32_platform}
board = heltec_wifi_lora_32
lib_deps =
@@ -952,34 +969,7 @@ build_flags =
; '-DDISPLAY_IDLE_LOGO=false'
; '-DDISPLAY_BRIGHTNESS=80'
; '-DDISPLAY_METRIC=false'
custom_description = LORA communication 868Mhz using arduino-LoRA
custom_hardware = ESP32 HELTEC LORA32
[env:heltec-wifi-lora-32-915] ; Heltec ESP32 Board with SSD1306 display
platform = ${com.esp32_platform}
board = heltec_wifi_lora_32
lib_deps =
${com-esp32.lib_deps}
${libraries.lora}
${libraries.ssd1306}
build_flags =
${com-esp32.build_flags}
; *** OpenMQTTGateway Modules ***
'-DZgatewayLORA="LORA"'
'-DLORA_BAND=915E6'
'-DGateway_Name="OMG_ESP32_LORA"'
'-DLED_SEND_RECEIVE=25'
'-DTimeLedON=0.1'
'-DLED_SEND_RECEIVE_ON=1'
; *** ssd1306 Display Options ***
'-DZdisplaySSD1306="HELTEC_SSD1306"'
; '-DLOG_TO_OLED=true' ; Enable log to OLED
; '-DJSON_TO_OLED=true'
; '-DLOG_LEVEL_OLED=LOG_LEVEL_NOTICE'
; '-DDISPLAY_IDLE_LOGO=false'
; '-DDISPLAY_BRIGHTNESS=80'
; '-DDISPLAY_METRIC=false'
custom_description = LORA communication 915Mhz using arduino-LoRA
custom_description = LORA communication using arduino-LoRA
custom_hardware = ESP32 HELTEC LORA32
; For testing only, not for production use