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 = {
{ "ssid1", "********", "", "", ""} // no MQTT
, { "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)

View file

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