mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-31 17:34:30 +02:00
Hotspot mode
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user