debug: preserve UART hook in AP isolation loop
This commit is contained in:
@@ -4104,7 +4104,31 @@ void heapCheckpoint(const char* label) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
|
Serial.begin(115200);
|
||||||
|
delay(2000);
|
||||||
|
|
||||||
|
Serial.println();
|
||||||
|
Serial.println("LilyGO compiled-project AP isolation test");
|
||||||
|
|
||||||
|
WiFi.persistent(false);
|
||||||
|
WiFi.setSleep(false);
|
||||||
|
WiFi.mode(WIFI_AP);
|
||||||
|
|
||||||
|
IPAddress ip(192, 168, 4, 1);
|
||||||
|
IPAddress gw(192, 168, 4, 1);
|
||||||
|
IPAddress mask(255, 255, 255, 0);
|
||||||
|
WiFi.softAPConfig(ip, gw, mask);
|
||||||
|
|
||||||
|
bool ok = WiFi.softAP("Overland-Isolation", "12345678", 6, false, 2);
|
||||||
|
Serial.print("softAP result: ");
|
||||||
|
Serial.println(ok ? "OK" : "FAILED");
|
||||||
|
Serial.print("AP IP: ");
|
||||||
|
Serial.println(WiFi.softAPIP());
|
||||||
|
}
|
||||||
|
|
||||||
|
void projectSetupDisabled() {
|
||||||
Serial.begin(115200);
|
Serial.begin(115200);
|
||||||
delay(500);
|
delay(500);
|
||||||
heapCheckpoint("setup:start");
|
heapCheckpoint("setup:start");
|
||||||
@@ -4291,10 +4315,10 @@ void setup() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
dnsServer.processNextRequest();
|
|
||||||
#if DASHBOARD_UART_ENABLED
|
#if DASHBOARD_UART_ENABLED
|
||||||
pollDashboardUart();
|
pollDashboardUart();
|
||||||
#endif
|
#endif
|
||||||
delay(2);
|
delay(100);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user