diff --git a/src/BlinkerSimpleESP32_MQTT.h b/src/BlinkerSimpleESP32_MQTT.h index 620fbb13..da5501ad 100644 --- a/src/BlinkerSimpleESP32_MQTT.h +++ b/src/BlinkerSimpleESP32_MQTT.h @@ -23,11 +23,11 @@ class BlinkerSimpleESP32_MQTT #endif void begin( const char* _auth, - const char* ssid, - const char* pswd) + const char* _ssid, + const char* _pswd) { Base::begin(); - connectWiFi(ssid, pswd); + connectWiFi(_ssid, _pswd); this->conn.begin(_auth); BLINKER_LOG1("ESP32_MQTT Initialled..."); } @@ -59,17 +59,17 @@ class BlinkerSimpleESP32_MQTT } #endif - void connectWiFi(const char* ssid, const char* pswd) + void connectWiFi(const char* _ssid, const char* _pswd) { uint32_t connectTime = millis(); - BLINKER_LOG2(("Connecting to "), ssid); + BLINKER_LOG2(("Connecting to "), _ssid); WiFi.mode(WIFI_STA); - if (pswd && strlen(pswd)) { - WiFi.begin(ssid, pswd); + if (_pswd && strlen(_pswd)) { + WiFi.begin(_ssid, _pswd); } else { - WiFi.begin(ssid); + WiFi.begin(_ssid); } while (WiFi.status() != WL_CONNECTED) { diff --git a/src/BlinkerSimpleESP32_WS.h b/src/BlinkerSimpleESP32_WS.h index 39d5c5a6..9d203d6f 100644 --- a/src/BlinkerSimpleESP32_WS.h +++ b/src/BlinkerSimpleESP32_WS.h @@ -92,7 +92,7 @@ class BlinkerSimpleESP32_WS if (millis() - connectTime > BLINKER_CONNECT_TIMEOUT_MS && WiFi.status() != WL_CONNECTED) { connectTime = millis(); - BLINKER_LOG1(("WiFi connect timeout, please check _ssid and _pswd!")); + BLINKER_LOG1(("WiFi connect timeout, please check ssid and pswd!")); BLINKER_LOG1(("Retring WiFi connect again!")); } } diff --git a/src/BlinkerSimpleESP8266_MQTT.h b/src/BlinkerSimpleESP8266_MQTT.h index 3ab861e3..910af07d 100644 --- a/src/BlinkerSimpleESP8266_MQTT.h +++ b/src/BlinkerSimpleESP8266_MQTT.h @@ -93,7 +93,7 @@ class BlinkerSimpleESP8266_MQTT if (millis() - connectTime > BLINKER_CONNECT_TIMEOUT_MS && WiFi.status() != WL_CONNECTED) { connectTime = millis(); - BLINKER_LOG1(("WiFi connect timeout, please check _ssid and _pswd!")); + BLINKER_LOG1(("WiFi connect timeout, please check ssid and pswd!")); BLINKER_LOG1(("Retring WiFi connect again!")); } } diff --git a/src/BlinkerSimpleESP8266_WS.h b/src/BlinkerSimpleESP8266_WS.h index 9d15c436..b1433703 100644 --- a/src/BlinkerSimpleESP8266_WS.h +++ b/src/BlinkerSimpleESP8266_WS.h @@ -92,7 +92,7 @@ class BlinkerSimpleESP8266_WS if (millis() - connectTime > BLINKER_CONNECT_TIMEOUT_MS && WiFi.status() != WL_CONNECTED) { connectTime = millis(); - BLINKER_LOG1(("WiFi connect timeout, please check _ssid and _pswd!")); + BLINKER_LOG1(("WiFi connect timeout, please check ssid and pswd!")); BLINKER_LOG1(("Retring WiFi connect again!")); } }