Show 'WiFi: Connecting...' message before attempting connection
This commit is contained in:
parent
aee3770d20
commit
0aa90bdce2
1 changed files with 6 additions and 0 deletions
|
|
@ -1168,6 +1168,12 @@ bool handleWifiPasswordTouch(int32_t x, int32_t y) {
|
||||||
preferences.putString("password", wifiPassword);
|
preferences.putString("password", wifiPassword);
|
||||||
preferences.end();
|
preferences.end();
|
||||||
|
|
||||||
|
lcd.fillScreen(TFT_BLACK);
|
||||||
|
lcd.setTextColor(TFT_WHITE, TFT_BLACK);
|
||||||
|
lcd.setFont(&fonts::DejaVu24);
|
||||||
|
lcd.setTextDatum(textdatum_t::middle_center);
|
||||||
|
lcd.drawString("WiFi: Connecting...", SCREEN_WIDTH / 2, SCREEN_HEIGHT / 2);
|
||||||
|
|
||||||
WiFi.mode(WIFI_STA);
|
WiFi.mode(WIFI_STA);
|
||||||
WiFi.begin(selectedSSID.c_str(), wifiPassword.c_str());
|
WiFi.begin(selectedSSID.c_str(), wifiPassword.c_str());
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue