mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-06-30 02:00:58 +02:00
Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
33520c18fe |
@ -178,11 +178,12 @@ void setup() {
|
||||
setConfig();
|
||||
Serial.println("buttonConfig: " + String(buttonConfig));
|
||||
|
||||
updateOLED2("Press Button", "Now for", "LED Test");
|
||||
updateOLED2("Press Button", "for LED test &", "offline mode");
|
||||
delay(2000);
|
||||
currentState = digitalRead(9);
|
||||
if (currentState == LOW) {
|
||||
ledTest();
|
||||
return;
|
||||
}
|
||||
|
||||
updateOLED2("Press Button", "Now for", "Config Menu");
|
||||
@ -196,28 +197,13 @@ void setup() {
|
||||
inConf();
|
||||
}
|
||||
|
||||
if (connectWIFI) {
|
||||
WiFi.begin("airgradient", "cleanair");
|
||||
int retries = 0;
|
||||
while ((WiFi.status() != WL_CONNECTED) && (retries < 15)) {
|
||||
retries++;
|
||||
delay(500);
|
||||
Serial.print(".");
|
||||
}
|
||||
if (retries > 14) {
|
||||
Serial.println(F("WiFi connection to SSID airgradient failed"));
|
||||
if (connectWIFI) connectToWifi();
|
||||
}
|
||||
if (connectWIFI) connectToWifi();
|
||||
if (WiFi.status() == WL_CONNECTED) {
|
||||
if (WiFi.SSID() == "airgradient") {
|
||||
ledTest();
|
||||
}
|
||||
sendPing();
|
||||
Serial.println(F("WiFi connected!"));
|
||||
Serial.println("IP address: ");
|
||||
Serial.println(WiFi.localIP());
|
||||
}
|
||||
}
|
||||
updateOLED2("Warming Up", "Serial Number:", String(getNormalizedMac()));
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
name=AirGradient Air Quality Sensor
|
||||
version=2.4.11
|
||||
version=2.4.12
|
||||
author=AirGradient <support@airgradient.com>
|
||||
maintainer=AirGradient <support@airgradient.com>
|
||||
sentence=ESP8266 library for an air quality sensor featuring PM2.5, CO2, Temperature, TVOC and Humidity with OLED display.
|
||||
|
Reference in New Issue
Block a user