no message

This commit is contained in:
Siwat Sirichai 2019-09-04 22:57:11 +07:00
parent e18a5c97c3
commit 1a58b81bc8
1 changed files with 10 additions and 2 deletions

View File

@ -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 ) {