From 3e2e8b15eb0b3d2946ae4e1e4c04626396f8af8b Mon Sep 17 00:00:00 2001 From: Phat Nguyen Date: Tue, 4 Jun 2024 15:51:01 +0700 Subject: [PATCH] Fix: WiFi configuration not reset in offline mode. --- examples/OneOpenAir/OneOpenAir.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/OneOpenAir/OneOpenAir.ino b/examples/OneOpenAir/OneOpenAir.ino index 5edc5c0b..5f84c26c 100644 --- a/examples/OneOpenAir/OneOpenAir.ino +++ b/examples/OneOpenAir/OneOpenAir.ino @@ -420,6 +420,7 @@ static void factoryConfigReset(void) { } /** Reset WIFI */ + WiFi.enableSTA(true); // Incase offline mode WiFi.disconnect(true, true); /** Reset local config */