Initial check in of HTTPS server for #452

This switches from the espressif web server to esp32_https_server. Both HTTPS and HTTP have been migrated. On board SSL key generation.
This commit is contained in:
Jm Casler
2020-10-07 22:02:53 -07:00
parent 200aa27cc0
commit 4f659b7563
5 changed files with 253 additions and 107 deletions

View File

@@ -29,9 +29,6 @@ bool isWifiAvailable()
// strcpy(radioConfig.preferences.wifi_password, "");
if (*wifiName && *wifiPsw) {
// Once every 10 seconds, try to reconnect.
return 1;
} else {
return 0;
@@ -64,6 +61,9 @@ void initWifi()
return;
}
createSSLCert();
if (radioConfig.has_preferences) {
const char *wifiName = radioConfig.preferences.wifi_ssid;
const char *wifiPsw = radioConfig.preferences.wifi_password;