diff --git a/platformio.ini b/platformio.ini index 59b651d..d90b873 100644 --- a/platformio.ini +++ b/platformio.ini @@ -24,6 +24,8 @@ build_flags = -DWIFI_PASSWD="\"${sysenv.WIFI_PASSWD}\"" -DWIFI_SSID2="\"${sysenv.WIFI_SSID2}\"" -DWIFI_PASSWD2="\"${sysenv.WIFI_PASSWD2}\"" + -DWIFI_SSID3="\"${sysenv.WIFI_SSID3}\"" + -DWIFI_PASSWD3="\"${sysenv.WIFI_PASSWD3}\"" -DMQTT_BROKER_URI="\"${sysenv.MQTT_BROKER_URI}\"" -DMQTT_USERNAME="\"${sysenv.MQTT_USERNAME}\"" -DMQTT_PASSWORD="\"${sysenv.MQTT_PASSWORD}\"" diff --git a/src/main.cpp b/src/main.cpp index 8a0e920..9cd6056 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -264,6 +264,7 @@ void setup() wifiMulti.addAP(WIFI_SSID, WIFI_PASSWD); wifiMulti.addAP(WIFI_SSID2, WIFI_PASSWD2); + wifiMulti.addAP(WIFI_SSID3, WIFI_PASSWD3); for (int tries=0; wifiMulti.run() != WL_CONNECTED && tries < 10; tries++) { Serial.print(".");