pushing my chances to personal branch so i can get the changes from the laptop

1.2-legacy
Jm Casler 2020-09-19 12:50:43 -07:00
rodzic 6e3b22c624
commit 7c44daf8f4
2 zmienionych plików z 20 dodań i 4 usunięć

Wyświetl plik

@ -8,6 +8,17 @@
WebServer webserver(80);
struct message {
char sender[10];
char message[250];
int32_t gpsLat;
int32_t gpsLong;
uint32_t time;
bool fromMe;
};
struct message arrayMessages[50];
String something = "";
String sender = "";

Wyświetl plik

@ -16,6 +16,11 @@ bool isWifiAvailable()
const char *wifiPsw = radioConfig.preferences.wifi_password;
if (*wifiName && *wifiPsw) {
//
return 1;
} else {
return 0;
@ -26,7 +31,7 @@ bool isWifiAvailable()
void deinitWifi()
{
/*
Note from Jm (Sept 16, 2020):
Note from Jm (jm@casler.org - Sept 16, 2020):
A bug in the ESP32 SDK was introduced in Oct 2019 that keeps the WiFi radio from
turning back on after it's shut off. See:
@ -52,16 +57,16 @@ void initWifi()
const char *wifiName = radioConfig.preferences.wifi_ssid;
const char *wifiPsw = radioConfig.preferences.wifi_password;
/*
if (1) {
if (0) {
radioConfig.preferences.wifi_ap_mode = 1;
strcpy(radioConfig.preferences.wifi_ssid, "MeshTest2");
strcpy(radioConfig.preferences.wifi_password, "12345678");
} else {
radioConfig.preferences.wifi_ap_mode = 0;
strcpy(radioConfig.preferences.wifi_ssid, "meshtastic");
strcpy(radioConfig.preferences.wifi_ssid, "meshtastic1");
strcpy(radioConfig.preferences.wifi_password, "meshtastic!");
}
/*
*/
if (*wifiName && *wifiPsw) {