Skip to content

Commit

Permalink
OpenAir set WiFi connect to airgradient on factory reset
Browse files Browse the repository at this point in the history
  • Loading branch information
pnt325 committed Jun 11, 2024
1 parent 6bdd4cb commit adabb9b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/OneOpenAir/OneOpenAir.ino
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,12 @@ static void factoryConfigReset(void) {
}

/** Reset WIFI */
WiFi.enableSTA(true); // Incase offline mode
WiFi.enableSTA(true); // Incase offline mode
WiFi.disconnect(true, true);
if (ag->isOne() == false) {
WiFi.begin("airgradient", "cleanair");
Serial.println("Set WiFi connect to \"airgradient\"");
}

/** Reset local config */
configuration.reset();
Expand Down

0 comments on commit adabb9b

Please # to comment.