From c2a2c4e7df19567427b820a107294d15a308cc25 Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Sun, 28 Jul 2019 17:24:50 +0200 Subject: [PATCH] WIFI3 --- platformio.ini | 2 ++ src/main.cpp | 1 + 2 files changed, 3 insertions(+) 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(".");