Skip to content

Commit

Permalink
Fix: WiFi configuration not reset in offline mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
pnt325 committed Jun 4, 2024
1 parent 2e62abe commit 3e2e8b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/OneOpenAir/OneOpenAir.ino
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ static void factoryConfigReset(void) {
}

/** Reset WIFI */
WiFi.enableSTA(true); // Incase offline mode
WiFi.disconnect(true, true);

/** Reset local config */
Expand Down

0 comments on commit 3e2e8b1

Please # to comment.