debug: isolate setup with config and relays only
This commit is contained in:
@@ -4110,7 +4110,19 @@ void setup() {
|
||||
delay(2000);
|
||||
|
||||
Serial.println();
|
||||
Serial.println("LilyGO compiled-project AP isolation test");
|
||||
Serial.println("LilyGO setup isolation: config + relays only");
|
||||
|
||||
heapCheckpoint("setup:start");
|
||||
|
||||
heapCheckpoint("before:loadConfig");
|
||||
loadConfig();
|
||||
heapCheckpoint("after:loadConfig");
|
||||
|
||||
printConfig();
|
||||
|
||||
heapCheckpoint("before:initRelays");
|
||||
initRelays();
|
||||
heapCheckpoint("after:initRelays");
|
||||
|
||||
WiFi.persistent(false);
|
||||
WiFi.setSleep(false);
|
||||
@@ -4121,13 +4133,16 @@ void setup() {
|
||||
IPAddress mask(255, 255, 255, 0);
|
||||
WiFi.softAPConfig(ip, gw, mask);
|
||||
|
||||
bool ok = WiFi.softAP("Overland-Isolation", "12345678", 6, false, 2);
|
||||
bool ok = WiFi.softAP("Overland-Relays-Test", "12345678", 6, false, 2);
|
||||
Serial.print("softAP result: ");
|
||||
Serial.println(ok ? "OK" : "FAILED");
|
||||
Serial.print("AP IP: ");
|
||||
Serial.println(WiFi.softAPIP());
|
||||
|
||||
heapCheckpoint("setup:end");
|
||||
}
|
||||
|
||||
|
||||
void projectSetupDisabled() {
|
||||
Serial.begin(115200);
|
||||
delay(500);
|
||||
|
||||
Reference in New Issue
Block a user