added library to platformio.ini

This commit is contained in:
Chester 2023-11-27 13:44:56 +01:00
parent 96492cc9da
commit 4b6f4a136a
2 changed files with 11 additions and 8 deletions

View file

@ -33,7 +33,7 @@ struct CREDENTIAL {
std::vector<CREDENTIAL> const credentials = { std::vector<CREDENTIAL> const credentials = {
{ "ssid1", "********", "", "", ""} // no MQTT { "ssid1", "********", "", "", ""} // no MQTT
, { "ssid2", "********", "10.14.0.1", "", ""} // MQTT without auth , { "ssid2", "********", "10.14.0.1", "", ""} // MQTT without auth
, { "ssid3", "********", "10.0.0.111", "mqttuser", "mqtt1234"} // MQTT with auth , { "ssid3", "********", "10.0.0.111", "mqttuser", "********"} // MQTT with auth
}; };
#if defined(ESP8266) #if defined(ESP8266)

View file

@ -10,22 +10,25 @@
[platformio] [platformio]
default_envs = esp8266 default_envs = esp8266
;default_envs = esp32, esp8266
[env:esp32] [env:esp32]
framework = arduino framework = arduino
platform = espressif32 platform = espressif32
board = az-delivery-devkit-v4 board = az-delivery-devkit-v4
board_build.mcu = esp32 board_build.mcu = esp32
lib_deps = rweather/Crypto @ ^0.2.0 lib_deps =
rweather/Crypto @ ^0.2.0
knolleary/PubSubClient@^2.8
[env:esp8266] [env:esp8266]
framework = arduino framework = arduino
platform = espressif8266 platform = espressif8266
board = d1_mini_lite board = d1_mini_lite
board_build.mcu = esp8266 board_build.mcu = esp8266
lib_deps = rweather/Crypto @ ^0.2.0 lib_deps =
monitor_speed=115200 rweather/Crypto @ ^0.2.0
; OTA knolleary/PubSubClient@^2.8
upload_port = 10.0.0.131
upload_protocol = espota monitor_speed = 115200
;upload_port = 10.0.0.131
;upload_protocol = espota