diff --git a/MQTT-temp-humidity-ESP32.ino b/MQTT-temp-humidity-ESP32.ino index 4526441..b6ddb19 100755 --- a/MQTT-temp-humidity-ESP32.ino +++ b/MQTT-temp-humidity-ESP32.ino @@ -55,7 +55,7 @@ void setup_wifi() { while (status != WL_CONNECTED) { delay(1000); Serial.print("."); - status = WiFi.begin(ssid, password); + status = WiFi.status(); } Serial.println("");