diff --git a/WaterishOS-core3.0/WaterishOS-core3.0.ino b/WaterishOS-core3.0/WaterishOS-core3.0.ino index 90f9346..8b41725 100644 --- a/WaterishOS-core3.0/WaterishOS-core3.0.ino +++ b/WaterishOS-core3.0/WaterishOS-core3.0.ino @@ -101,7 +101,13 @@ void setup() { writelcd(" Siwat INC (tm) "," Waterish OS"); delay(1000); WiFi.mode(WIFI_STA); - WiFi.begin(ssid, password); + WiFi.disconnect(true); + esp_wifi_sta_wpa2_ent_set_identity((uint8_t *)eap_usernam, strlen(eap_username)); + esp_wifi_sta_wpa2_ent_set_username((uint8_t *)eap_username, strlen(eap_username)); + esp_wifi_sta_wpa2_ent_set_password((uint8_t *)eap_password, strlen(eap_password)); + esp_wpa2_config_t config = WPA2_CONFIG_INIT_DEFAULT(); + esp_wifi_sta_wpa2_ent_enable(&config); + WiFi.begin(ssid); int connectionattempt = 0; while (WiFi.status() != WL_CONNECTED && online) { @@ -171,7 +177,9 @@ void loop() { if(allowbuttonint)gpio0.check(); } void drawcon(){ - () + if(devconmenu==1){ + writelcd("connectionchck.c","Check Connection"); + } } void handleGPIO0(AceButton* , uint8_t eventType, uint8_t ) {