From 4290bb2e4a91f78bab1296a3959da057b8901a7a Mon Sep 17 00:00:00 2001 From: Mathieu Carbou Date: Wed, 30 Oct 2024 10:07:44 +0100 Subject: [PATCH] Fix CI --- examples/SimpleServer/SimpleServer.ino | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/examples/SimpleServer/SimpleServer.ino b/examples/SimpleServer/SimpleServer.ino index fae2338..31ad9e8 100644 --- a/examples/SimpleServer/SimpleServer.ino +++ b/examples/SimpleServer/SimpleServer.ino @@ -419,8 +419,12 @@ void setup() { // Example below: IP never changes. // curl -v -X GET http://192.168.4.1/index-static.html server.serveStatic("/index-static.html", LittleFS, "/index.html").setTemplateProcessor([](const String& var) -> String { - if (var == "IP") - return WiFi.localIP().toString(); + if (var == "IP") { + // for CI, commented out since H2 board doesn ot support WiFi + // return WiFi.localIP().toString(); + // return WiFi.softAPIP().toString(); + return "127.0.0..1"; + } return emptyString; });