This commit is contained in:
proddy
2019-03-10 15:09:51 +01:00
parent b52794998e
commit 8e62a99417
46 changed files with 6145 additions and 5523 deletions

View File

@@ -1,45 +1,37 @@
[platformio]
; change this for your ESP8266 device
env_default = nodemcuv2
; env_default = d1_mini
env_default = d1_mini
[common]
platform = espressif8266
; optional flags are -DUSE_LED -DSHOWER_TEST -DUSE_SERIAL
build_flags = -g -w -DMQTT_MAX_PACKET_SIZE=400
build_flags_custom = '-DWIFI_SSID="my_ssid"' '-DWIFI_PASSWORD="my_password"' '-DMQTT_IP="my_broker_ip"' '-DMQTT_USER="my_broker_username"' '-DMQTT_PASS="my_broker_password"'
flash_mode = dout
build_flags = -g -w
;build_flags = -g -w -DBUILD_TIME=$UNIX_TIME
wifi_settings =
; hard code if you prefer. Recommendation is to set from within the app when in Serial or AP mode
;wifi_settings = '-DWIFI_SSID="XXXX"' '-DWIFI_PASSWORD="XXXX"'
lib_deps =
Time
PubSubClient
ArduinoJson
CRC32
CircularBuffer
[env:nodemcuv2]
board = nodemcuv2
platform = ${common.platform}
framework = arduino
lib_deps = ${common.lib_deps}
build_flags = ${common.build_flags} ${common.build_flags_custom}
upload_speed = 921600
; comment out next line if using USB and not OTA
upload_port = "boiler."
; examples....
;upload_port = "boiler"
;upload_port = "boiler.local"
;upload_port = 10.10.10.6
JustWifi
AsyncMqttClient
ArduinoJson
; https://github.com/bblanchon/ArduinoJson#v5.13.5
OneWire
[env:d1_mini]
board = d1_mini
platform = ${common.platform}
framework = arduino
lib_deps = ${common.lib_deps}
build_flags = ${common.build_flags} ${common.build_flags_custom}
build_flags = ${common.build_flags} ${common.wifi_settings}
board_build.flash_mode = ${common.flash_mode}
upload_speed = 921600
; comment out next line if using USB and not OTA
upload_port = "boiler."
; examples....
;upload_port = "boiler"
;upload_port = "boiler.local"
;upload_port = 10.10.10.6
monitor_speed = 115200
; for OTA comment out these sections
;upload_protocol = espota
;upload_port = ems-esp.local