diff --git a/platformio.ini b/platformio.ini index 7959436..5c637e2 100644 --- a/platformio.ini +++ b/platformio.ini @@ -15,6 +15,11 @@ env_default = nodemcuv2 description = The ESP8266 based multi-client lighting gadget [common] +framework = arduino +platform = espressif8266@1.8.0 +; platform = https://github.com/platformio/platform-espressif8266.git +; platform = https://github.com/platformio/platform-espressif8266.git#feature/stage +; platform = https://github.com/platformio/platform-espressif8266.git#develop build_flags = -DPIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH -DMQTT_MAX_PACKET_SIZE=2048 ; PubSubClient Specific flags @@ -23,27 +28,6 @@ monitor_speed = 115200 board_build.flash_mode = dout upload_speed = 115200 upload_resetmethod = nodemcu - - -[env:esp01_1m] -board = esp01_1m -framework = arduino -platform = espressif8266@1.8.0 -build_flags = ${common.build_flags} -D D1=2 -monitor_speed = ${common.monitor_speed} -upload_speed = ${common.upload_speed} -upload_resetmethod = ${common.upload_resetmethod} -board_build.flash_mode = dout - -[env:nodemcuv2] -board = nodemcuv2 -framework = arduino -platform = espressif8266@1.8.0 -build_flags = ${common.build_flags} -monitor_speed = ${common.monitor_speed} -upload_speed = ${common.upload_speed} -upload_resetmethod = ${common.upload_resetmethod} - lib_deps = WiFiManager@0.14 AsyncMqttClient @@ -52,4 +36,25 @@ lib_deps = NeoPixelBus@2.4.1 WebSockets ESPAsyncE131 - ESPAsyncUDP \ No newline at end of file + ESPAsyncUDP + +[env:esp01_1m] +board = esp01_1m +framework = ${common.framework} +platform = ${common.platform} +build_flags = ${common.build_flags} -D D1=2 +monitor_speed = ${common.monitor_speed} +upload_speed = ${common.upload_speed} +upload_resetmethod = ${common.upload_resetmethod} +board_build.flash_mode = dout +lib_deps = ${common.lib_deps} + +[env:nodemcuv2] +board = nodemcuv2 +framework = ${common.framework} +platform = ${common.platform} +build_flags = ${common.build_flags} +monitor_speed = ${common.monitor_speed} +upload_speed = ${common.upload_speed} +upload_resetmethod = ${common.upload_resetmethod} +lib_deps = ${common.lib_deps} \ No newline at end of file