small updates

This commit is contained in:
proddy
2018-05-27 11:51:05 +02:00
parent cd2a384b73
commit 91473eb7ea
5 changed files with 94 additions and 50 deletions

33
platformio.ini-example Normal file
View File

@@ -0,0 +1,33 @@
[platformio]
env_default = nodemcuv2
#env_default = d1_mini
[common]
platform = espressif8266
build_flags = -g -DMQTT_MAX_PACKET_SIZE=300
build_flags_custom = '-DWIFI_SSID="<my_ssid>"' '-DWIFI_PASSWORD="<my_password>"' '-DMQTT_IP="<broker_ip>"' '-DMQTT_USER="<broker_username>"' '-DMQTT_PASS="<broker_password>"'
lib_deps =
Time
PubSubClient
ArduinoJson
Ticker
[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."
[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}
upload_speed = 921600
; comment out next line if using USB and not OTA
upload_port = "boiler."