Soft AP and basic captive portal done.

1.2-legacy
Jm Casler 2020-09-18 18:16:58 -07:00
rodzic b1643e6036
commit 4d72afebe6
2 zmienionych plików z 2 dodań i 3 usunięć

Wyświetl plik

@ -52,6 +52,7 @@ void initWifi()
const char *wifiName = radioConfig.preferences.wifi_ssid; const char *wifiName = radioConfig.preferences.wifi_ssid;
const char *wifiPsw = radioConfig.preferences.wifi_password; const char *wifiPsw = radioConfig.preferences.wifi_password;
/*
if (1) { if (1) {
radioConfig.preferences.wifi_ap_mode = 1; radioConfig.preferences.wifi_ap_mode = 1;
strcpy(radioConfig.preferences.wifi_ssid, "MeshTest2"); strcpy(radioConfig.preferences.wifi_ssid, "MeshTest2");
@ -61,7 +62,7 @@ void initWifi()
strcpy(radioConfig.preferences.wifi_ssid, "meshtastic"); strcpy(radioConfig.preferences.wifi_ssid, "meshtastic");
strcpy(radioConfig.preferences.wifi_password, "meshtastic!"); strcpy(radioConfig.preferences.wifi_password, "meshtastic!");
} }
*/
if (*wifiName && *wifiPsw) { if (*wifiName && *wifiPsw) {
if (radioConfig.preferences.wifi_ap_mode) { if (radioConfig.preferences.wifi_ap_mode) {

Wyświetl plik

@ -13,6 +13,4 @@ void initWifi();
void deinitWifi(); void deinitWifi();
bool isWifiAvailable(); bool isWifiAvailable();
void WiFiEvent(WiFiEvent_t event);
void handleDNSResponse(); void handleDNSResponse();