From 1a58b81bc86177a72f5ef3fc83965609cc7662ee Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Wed, 4 Sep 2019 22:57:11 +0700 Subject: [PATCH] no message --- WaterishOS-core3.0/WaterishOS-core3.0.ino | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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 ) {