mirror of
https://github.com/1technophile/OpenMQTTGateway.git
synced 2026-02-20 00:32:04 +01:00
* Update arduino core to 3.1.1 * Fix Blufi build * Update arduinojson, fix build errors with idf * Fix narrowing * fix RF builds * WIP-Convert ino files to cpp * Fix pilight build * Fix Somfy actuator build. * Update esp32dev-rf partition * Fix Weatherstation build * Fix GFSunInverter build * Fix esp32dev-ir build * Fix ble-aws build * Fix eth builds * Fix m5Stack missing pins_arduino.h * Fix build errors for M5 stack/tough, others are upstream issues. * Fix RTL 433 build - remaining errors are from radolib * Fix nodemcu build * fix 2g builds * Fix serial build * Fix actuator on off builds * Fix SSD1306 build - remaining errors are from radiolib * Fix multiple definition of OTAserver_cert * Fix nodemcu rf2 build * Fix ADC builds * Fix sensor builds * Fix LORA builds * Fix multi-receiver builds - remaining errors are in radiolib * Fix fastled builds * Fix theegns board builds * Fix broker builds * Update fastled - old version failed all-test build * Fix RN8209 builds * Fix max temp actuator builds * Fix PWM builds * Fix C37 sensor builds * Fix HTU21 builds * Fix INA266 builds * Fix undefined variables in mqtt discovery * Fix webui build * Fix fastled invalid pin error * Fix wifi manual setup builds * Fix onewire/all-test build - bin too big error remaining * Fix theengs plug build * Fix rfbridge builds * Fix blufi builds * Fix undefined functions in serial * Fix preprocessor definition checks * Set IDF log level to erre * Add delay in loop to prevent watchdog timeout * Use xTaskCreateUniveral to support single core processors * Remove old HTTPUpdate files - upsteam fixed. * Cleanup and move common declarations to header file * Use custom partiton table to fix builds where bin is too large * Update M5StickC - fixs esp32-m5stick-c-ble build * Revert to Arduino core 2.x for builds with incompatible libs * Remove "Z" from file names and rename omg_common to TheengsCommon * Fix gateway name when using MAC with new Arduino core * Update IDF config to reduce loop task stack use * Update esp-nimble-cpp version, corrects BLE uppercase ID's * Update wifi manager to fix watchdog timeout error
226 lines
8.7 KiB
INI
226 lines
8.7 KiB
INI
; PlatformIO Project Configuration File
|
|
;
|
|
; Build options: build flags, source filter
|
|
; Upload options: custom upload port, speed and extra flags
|
|
; Library options: dependencies, extra library storages
|
|
; Advanced options: extra scripting
|
|
;
|
|
; Please visit documentation for the other options and examples
|
|
; https://docs.platformio.org/page/projectconf.html
|
|
|
|
[platformio]
|
|
src_dir = main
|
|
include_dir = main
|
|
|
|
extra_configs =
|
|
environments.ini
|
|
tests/*_env.ini
|
|
*_env.ini
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
; ENVIRONMENT CHOICE ;
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
;Uncomment the env line corresponding to your board and modules required, ;
|
|
;you can also adapt the modules by removing the corresponding lines in the env detail ;
|
|
; if you go to the build flag section of your env you will see that some User_config.h ;
|
|
; parameters can be overwritten here, for example the gateway name. ;
|
|
; If you want to avoid the lost of your environments at each update you can put them ;
|
|
; into a separate file called prod_env.ini, it will be automatically read by pio ;
|
|
; an example (prod_env.ini.example) is available into the same folder as this file. ;
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
;default_envs = rfbridge
|
|
;default_envs = rfbridge-direct
|
|
;default_envs = esp32dev-all-test
|
|
;default_envs = esp32dev-rf
|
|
;default_envs = esp32dev-pilight
|
|
;default_envs = esp32dev-pilight-cc1101
|
|
;default_envs = esp32dev-somfy-cc1101
|
|
;default_envs = esp32dev-pilight-somfy-cc1101
|
|
;default_envs = esp32dev-weatherstation
|
|
;default_envs = esp32dev-gf-sun-inverter
|
|
;default_envs = esp32dev-ir
|
|
;default_envs = esp32dev-ble
|
|
;default_envs = esp32dev-ble-mqtt-undecoded
|
|
;default_envs = esp32dev-ble-aws
|
|
;default_envs = esp32feather-ble
|
|
;default_envs = esp32-lolin32lite-ble
|
|
;default_envs = esp32-olimex-gtw-ble-eth
|
|
;default_envs = esp32-olimex-gtw-ble-poe
|
|
;default_envs = esp32-olimex-gtw-ble-poe-iso
|
|
;default_envs = esp32-wt32-eth01-ble-eth
|
|
;default_envs = esp32-olimex-gtw-ble-wifi
|
|
;default_envs = esp32-m5stick-ble
|
|
;default_envs = esp32-m5stack-ble
|
|
;default_envs = esp32-m5tough-ble
|
|
;default_envs = esp32-m5stick-c-ble
|
|
;default_envs = esp32-m5stick-cp-ble
|
|
;default_envs = esp32-m5atom-matrix
|
|
;default_envs = esp32-m5atom-lite
|
|
;default_envs = esp32s3-atomS3U
|
|
;default_envs = esp32doitv1-aithinker-r01-sx1278
|
|
;default_envs = esp32dev-rtl_433
|
|
;default_envs = heltec-rtl_433
|
|
;default_envs = heltec-rtl_433-fsk
|
|
;default_envs = heltec-ble
|
|
;default_envs = lilygo-rtl_433
|
|
;default_envs = lilygo-rtl_433-fsk
|
|
;default_envs = lilygo-ble
|
|
;default_envs = esp32dev-multi_receiver
|
|
;default_envs = esp32dev-multi_receiver-pilight
|
|
;default_envs = tinypico-ble
|
|
;default_envs = ttgo-lora32-v1
|
|
;default_envs = ttgo-lora32-v21
|
|
;default_envs = ttgo-t-beam
|
|
;default_envs = heltec-wifi-lora-32
|
|
;default_envs = shelly-plus1
|
|
;default_envs = nodemcuv2-all-test
|
|
;default_envs = nodemcuv2-fastled-test
|
|
;default_envs = nodemcuv2-2g
|
|
;default_envs = nodemcuv2-ir
|
|
;default_envs = nodemcuv2-serial
|
|
;default_envs = avatto-bakeey-ir
|
|
;default_envs = nodemcuv2-rf
|
|
;default_envs = nodemcuv2-rf-cc1101
|
|
;default_envs = nodemcuv2-somfy-cc1101
|
|
;default_envs = manual-wifi-test
|
|
;default_envs = rf-wifi-gateway
|
|
;default_envs = nodemcuv2-rf2
|
|
;default_envs = nodemcuv2-rf2-cc1101
|
|
;default_envs = nodemcuv2-pilight
|
|
;default_envs = nodemcuv2-weatherstation
|
|
;default_envs = sonoff-basic
|
|
;default_envs = sonoff-basic-rfr3
|
|
;default_envs = atmega-all-test
|
|
;default_envs = uno-rf
|
|
;default_envs = uno-fastled
|
|
;default_envs = esp32dev-ble-datatest
|
|
;default_envs = esp32s3-dev-c1-ble
|
|
;default_envs = esp32c3-dev-m1-ble
|
|
;default_envs = airm2m_core_esp32c3
|
|
;default_envs = esp32c3-dev-c2-ble
|
|
;default_envs = lolin_c3_mini
|
|
;default_envs = thingpulse-espgateway
|
|
;default_envs = theengs-bridge
|
|
;default_envs = esp32dev-ble-idf
|
|
;default_envs = esp32s3-m5stack-stamps3
|
|
;default_envs = esp32c3-m5stamp
|
|
;default_envs = esp32c3u-m5stamp
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
; ENVIRONMENTS PARAMETERS ;
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
;Libraries and parameters shared accross environements ;
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
[libraries]
|
|
arduinojson = ArduinoJson@6.18.5
|
|
arduinolog = https://github.com/1technophile/Arduino-Log.git#f634509
|
|
picomqtt = PicoMQTT@1.1.1
|
|
rc-switch = https://github.com/1technophile/rc-switch.git#98537e9
|
|
newremoteswitch = https://github.com/1technophile/NewRemoteSwitch.git#8eb980e
|
|
ble = https://github.com/h2zero/NimBLE-Arduino.git#2.2.1
|
|
irremoteesp = https://github.com/theengs/IRremoteESP8266#arduinov3
|
|
lora = https://github.com/sandeepmistry/arduino-LoRa.git#f4a1d27
|
|
esppilight = https://github.com/theengs/ESPiLight#b9dd7a1
|
|
rfWeatherStation = WeatherStationDataRx@0.3.1
|
|
rfm69 = https://github.com/LowPowerLab/RFM69.git#2e915ea
|
|
rfm69spi = https://github.com/lowpowerlab/spiflash.git#9c0c2b9
|
|
rfm69_low-power = Low-Power@1.6
|
|
dht = DHT sensor library@1.3.2
|
|
unifiedsensor = Adafruit Unified Sensor@1.1.4
|
|
tsl2561 = Adafruit TSL2561@1.0.3
|
|
bme280 = SparkFun BME280@2.0.4
|
|
bmp180 = BMP180#efac46bd8d
|
|
htu21 = SparkFun HTU21D Humidity and Temperature Sensor Breakout@1.1.3
|
|
ahtx0 = Adafruit AHTX0
|
|
ina226 = https://github.com/jarzebski/Arduino-INA226.git#968a684
|
|
a6lib = https://github.com/h2zero/A6lib
|
|
wifimanager32 = https://github.com/h2zero/WiFiManager.git#1ac24f4
|
|
wifimanager8266 = https://github.com/tzapu/WiFiManager.git#2.0.5-beta
|
|
ethernet = Ethernet
|
|
esp8266_mdns = esp8266_mdns
|
|
wire = Wire
|
|
fastled = fastled/FastLED@3.9.15
|
|
adafruit_neopixel = adafruit/Adafruit NeoPixel@^1.11.0
|
|
onewire = https://github.com/h2zero/OneWire#GPIO-fix
|
|
dallastemperature = DallasTemperature
|
|
m5stickc = M5StickC@0.2.5
|
|
m5stickcp = https://github.com/m5stack/M5StickC-Plus.git#0.1.1
|
|
m5stack = M5Stack@0.4.6
|
|
m5tough = https://github.com/m5stack/M5Tough.git#ccf49e1
|
|
smartrc-cc1101-driver-lib = SmartRC-CC1101-Driver-Lib@2.5.7
|
|
stl = https://github.com/mike-matera/ArduinoSTL.git#7411816
|
|
shtc3 = https://github.com/sparkfun/SparkFun_SHTC3_Arduino_Library
|
|
somfy_remote=Somfy_Remote_Lib@0.3.0
|
|
rtl_433_ESP = https://github.com/NorthernMan54/rtl_433_ESP.git#v0.4.0
|
|
emodbus = miq19/eModbus@1.0.0
|
|
gfSunInverter = https://github.com/BlackSmith/GFSunInverter.git#v1.0.1
|
|
decoder = https://github.com/theengs/decoder.git#development
|
|
ssd1306 = https://github.com/ThingPulse/esp8266-oled-ssd1306.git#f96fd6a
|
|
lm75 = jeremycole/I2C Temperature Sensors derived from the LM75@^1.0.3
|
|
rn8209 = https://github.com/theengs/RN8209C-SDK.git#arduino
|
|
|
|
[env]
|
|
framework = arduino
|
|
lib_deps =
|
|
${libraries.picomqtt}
|
|
${libraries.arduinojson}
|
|
${libraries.arduinolog}
|
|
build_flags =
|
|
'-DWM_DEBUG_LEVEL=1' ;WiFi Manager log level, valid values are: DEBUG_ERROR = 0, DEBUG_NOTIFY = 1, DEBUG_VERBOSE = 2, DEBUG_DEV = 3, DEBUG_MAX = 4
|
|
-w ; supress all warnings
|
|
; -E ; generate precompiled source file (.pio/build/*/src/main.ino.cpp.o), use for precompilator debuging only (prevent compilation to succeed)
|
|
; '-DLOG_LEVEL=LOG_LEVEL_TRACE' ; Enable trace level logging
|
|
monitor_speed = 115200
|
|
|
|
[com]
|
|
esp8266_platform = espressif8266@4.2.1
|
|
esp32_platform = https://github.com/pioarduino/platform-espressif32#53.03.11
|
|
esp32_solo_platform = https://github.com/tasmota/platform-espressif32/releases/download/2023.02.00/platform-espressif32.zip
|
|
atmelavr_platform = atmelavr@3.3.0
|
|
|
|
[com-esp] ; Used by all ESP8266/ESP8285 based builds
|
|
lib_deps =
|
|
${env.lib_deps}
|
|
build_flags =
|
|
${env.build_flags}
|
|
'-DENV_NAME="$PIOENV"'
|
|
'-DZmqttDiscovery="HADiscovery"'
|
|
'-DMQTTsetMQTT'
|
|
'-DMQTT_HTTPS_FW_UPDATE'
|
|
;'-DCORE_DEBUG_LEVEL=4'
|
|
|
|
[com-esp32] ; Used by all ESP32 based builds
|
|
extra_scripts = pre:scripts/replace_lib.py
|
|
lib_deps =
|
|
${env.lib_deps}
|
|
${libraries.wifimanager32}
|
|
build_flags =
|
|
${env.build_flags}
|
|
'-DENV_NAME="$PIOENV"'
|
|
'-DZmqttDiscovery="HADiscovery"'
|
|
'-DCONFIG_BT_NIMBLE_ROLE_PERIPHERAL_DISABLED'
|
|
'-DCONFIG_BT_NIMBLE_ROLE_BROADCASTER_DISABLED'
|
|
'-DCONFIG_NIMBLE_CPP_ADDR_FMT_UPPERCASE'
|
|
'-DMQTTsetMQTT'
|
|
'-DMQTT_HTTPS_FW_UPDATE'
|
|
;'-DCORE_DEBUG_LEVEL=4'
|
|
'-DZwebUI="WebUI"' ; enable WebUI as a default for all ESP32 builds ( the module only enables for ESP32 based builds )
|
|
'-DARDUINO_LOOP_STACK_SIZE=9600' ; The firmware upgrade options needs a large amount of free stack, ~9600
|
|
|
|
[com-arduino]
|
|
lib_deps =
|
|
${env.lib_deps}
|
|
${libraries.ethernet}
|
|
build_flags =
|
|
${env.build_flags}
|
|
'-DZmqttDiscovery="HADiscovery"'
|
|
|
|
[com-arduino-low-memory]
|
|
lib_deps =
|
|
${env.lib_deps}
|
|
${libraries.ethernet}
|
|
build_flags =
|
|
${env.build_flags}
|
|
'-DsimpleReceiving=false' |