Hendrik Langer 5 years ago
parent
commit
c2a2c4e7df
  1. 2
      platformio.ini
  2. 1
      src/main.cpp

2
platformio.ini

@ -24,6 +24,8 @@ build_flags =
-DWIFI_PASSWD="\"${sysenv.WIFI_PASSWD}\"" -DWIFI_PASSWD="\"${sysenv.WIFI_PASSWD}\""
-DWIFI_SSID2="\"${sysenv.WIFI_SSID2}\"" -DWIFI_SSID2="\"${sysenv.WIFI_SSID2}\""
-DWIFI_PASSWD2="\"${sysenv.WIFI_PASSWD2}\"" -DWIFI_PASSWD2="\"${sysenv.WIFI_PASSWD2}\""
-DWIFI_SSID3="\"${sysenv.WIFI_SSID3}\""
-DWIFI_PASSWD3="\"${sysenv.WIFI_PASSWD3}\""
-DMQTT_BROKER_URI="\"${sysenv.MQTT_BROKER_URI}\"" -DMQTT_BROKER_URI="\"${sysenv.MQTT_BROKER_URI}\""
-DMQTT_USERNAME="\"${sysenv.MQTT_USERNAME}\"" -DMQTT_USERNAME="\"${sysenv.MQTT_USERNAME}\""
-DMQTT_PASSWORD="\"${sysenv.MQTT_PASSWORD}\"" -DMQTT_PASSWORD="\"${sysenv.MQTT_PASSWORD}\""

1
src/main.cpp

@ -264,6 +264,7 @@ void setup()
wifiMulti.addAP(WIFI_SSID, WIFI_PASSWD); wifiMulti.addAP(WIFI_SSID, WIFI_PASSWD);
wifiMulti.addAP(WIFI_SSID2, WIFI_PASSWD2); wifiMulti.addAP(WIFI_SSID2, WIFI_PASSWD2);
wifiMulti.addAP(WIFI_SSID3, WIFI_PASSWD3);
for (int tries=0; wifiMulti.run() != WL_CONNECTED && tries < 10; tries++) { for (int tries=0; wifiMulti.run() != WL_CONNECTED && tries < 10; tries++) {
Serial.print("."); Serial.print(".");

Loading…
Cancel
Save