Hotspot mode

This commit is contained in:
samuelbles07
2024-12-07 05:41:39 +07:00
parent 4ae0206e6b
commit e3156d438c

View File

@@ -193,13 +193,13 @@ void setup() {
WiFi.softAP("airgradient", "cleanair"); WiFi.softAP("airgradient", "cleanair");
IPAddress IP = WiFi.softAPIP(); IPAddress IP = WiFi.softAPIP();
Serial.print("AP IP address: "); Serial.print("AP IP address: ");
Serial.println(IP); Serial.println(IP);
oledDisplay.setText("", "Offline Storage Mode", ""); oledDisplay.setText("", "Offline Storage Mode", "");
delay(3000); delay(3000);
mdnsInit(); mdnsInit();
localServer.begin(); localServer.begin();
// Update display and led bar after finishing setup to show dashboard // Update display and led bar after finishing setup to show dashboard
updateDisplayAndLedBar(); updateDisplayAndLedBar();
@@ -903,8 +903,8 @@ static void updateDisplayAndLedBar(void) {
if (configuration.isOfflineMode()) { if (configuration.isOfflineMode()) {
// Ignore network related status when in offline mode // Ignore network related status when in offline mode
stateMachine.displayHandle(AgStateMachineNormal); stateMachine.displayHandle(AgStateMachineNormal);
// stateMachine.handleLeds(AgStateMachineNormal); // stateMachine.handleLeds(AgStateMachineNormal);
return; return;
} }