diff --git a/src/AgWiFiConnector.cpp b/src/AgWiFiConnector.cpp index 30d7f184..1800c710 100644 --- a/src/AgWiFiConnector.cpp +++ b/src/AgWiFiConnector.cpp @@ -62,10 +62,9 @@ bool WifiConnector::connect(void) { #endif WIFI()->setConfigPortalTimeout(WIFI_CONNECT_COUNTDOWN_MAX); - WiFiManagerParameter lineBreak("

Check to enabled post data to AirGradient cloud

"); - WIFI()->addParameter(&lineBreak); WiFiManagerParameter postToAg("chbPostToAg", "Post To AirGradient", "T", 2, "type=\"checkbox\" ", WFM_LABEL_AFTER); WIFI()->addParameter(&postToAg); + WIFI()->autoConnect(ssid.c_str(), WIFI_HOTSPOT_PASSWORD_DEFAULT); #ifdef ESP32