prep for syslog

This commit is contained in:
Paul
2019-11-19 23:11:26 +01:00
parent 9a0780ba77
commit a04b2ff708
10 changed files with 75 additions and 546 deletions

View File

@@ -16,9 +16,25 @@ default_envs = release
;custom_flags = -DFORCE_SERIAL -DMYESP_DEBUG
custom_flags =
;general_flags = -DPIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH_LOW_FLASH -DVTABLES_IN_FLASH
general_flags = -fno-exceptions -lstdc++ -DNO_GLOBAL_EEPROM -DBEARSSL_SSL_BASIC
;general_flags =
#
# Available lwIP variants (macros):
# -DPIO_FRAMEWORK_ARDUINO_LWIP_HIGHER_BANDWIDTH = v1.4 Higher Bandwidth (default)
# -DPIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY = v2 Lower Memory
# -DPIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH = v2 Higher Bandwidth
# -DPIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH_LOW_FLASH
# -DPIO_FRAMEWORK_ARDUINO_LWIP2_IPV6_LOW_MEMORY
# Other flags
# -DVTABLES_IN_FLASH
# -DNO_GLOBAL_EEPROM
# -DBEARSSL_SSL_BASIC
general_flags = -std=c++11 -DNO_GLOBAL_EEPROM -DBEARSSL_SSL_BASIC -DPIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY
# From https://github.com/esp8266/Arduino/blob/master/tools/sdk/ld
# eagle.flash.4m1m.ld = 1019 KB sketch, 1000 KB SPIFFS. 4KB EEPROM, 4KB RFCAL, 12KB WIFI stack, 2052 KB OTA & buffer
# eagle.flash.4m2m.ld = same as above but with 2024 KB SPIFFS
# eagle.flash.4m.ld = same as above but with no SPIFFS storage
build_flags_4m1m = -Wl,-Teagle.flash.4m1m.ld
build_flags = ${common.general_flags} ${common.build_flags_4m1m}
[env]
framework = arduino
@@ -26,13 +42,13 @@ platform = espressif8266
lib_deps =
https://github.com/rlogiacco/CircularBuffer
https://github.com/PaulStoffregen/OneWire
;https://github.com/me-no-dev/ESPAsyncWebServer
https://github.com/me-no-dev/ESPAsyncWebServer#b0c6144
https://github.com/me-no-dev/ESPAsyncWebServer
;https://github.com/me-no-dev/ESPAsyncWebServer#b0c6144
https://github.com/bakercp/CRC32
JustWifi@2.0.2
AsyncMqttClient@0.8.2
EEPROM_Rotate@0.9.2
ArduinoJson@6.12.0
ArduinoJson@6.13.0
ESPAsyncUDP
ESPAsyncTCP@1.2.2
upload_speed = 921600
@@ -51,27 +67,27 @@ upload_port = ems-esp.local
# Do not modify
[env:travis]
board = esp12e
build_flags = ${common.general_flags}
build_flags = ${common.build_flags}
extra_scripts = scripts/main_script.py
[env:esp12e]
board = esp12e
build_flags = ${common.general_flags}
build_flags = ${common.build_flags}
extra_scripts = scripts/main_script.py
[env:d1_mini]
board = d1_mini
build_flags = ${common.general_flags}
build_flags = ${common.build_flags}
extra_scripts = scripts/main_script.py
[env:nodemcuv2]
board = nodemcuv2
build_flags = ${common.general_flags}
build_flags = ${common.build_flags}
extra_scripts = scripts/main_script.py
[env:nodemcu]
board = nodemcu
build_flags = ${common.general_flags}
build_flags = ${common.build_flags}
extra_scripts = scripts/main_script.py
#
@@ -80,7 +96,7 @@ extra_scripts = scripts/main_script.py
[env:debug]
board = d1_mini
build_type = debug
build_flags = ${common.general_flags} ${common.custom_flags}
build_flags = ${common.build_flags} ${common.custom_flags}
extra_scripts =
pre:scripts/pre_script.py
scripts/main_script.py
@@ -88,7 +104,7 @@ extra_scripts =
[env:release]
board = d1_mini
build_type = release
build_flags = ${common.general_flags} ${common.custom_flags}
build_flags = ${common.build_flags} ${common.custom_flags}
extra_scripts =
pre:scripts/pre_script.py
scripts/main_script.py