On Air: Blink while searching WLAN
This commit is contained in:
@@ -30,12 +30,16 @@ void setup() {
|
|||||||
WiFi.begin(ssid, password);
|
WiFi.begin(ssid, password);
|
||||||
|
|
||||||
while (WiFi.status() != WL_CONNECTED) {
|
while (WiFi.status() != WL_CONNECTED) {
|
||||||
delay(500);
|
|
||||||
Serial.print(".");
|
Serial.print(".");
|
||||||
|
delay(250);
|
||||||
|
digitalWrite(BUILTIN_LED, LOW);
|
||||||
|
delay(250);
|
||||||
|
digitalWrite(BUILTIN_LED, HIGH);
|
||||||
}
|
}
|
||||||
Serial.println();
|
Serial.println();
|
||||||
Serial.print("IP address: ");
|
Serial.print("IP address: ");
|
||||||
Serial.println(WiFi.localIP());
|
Serial.println(WiFi.localIP());
|
||||||
|
digitalWrite(BUILTIN_LED, HIGH);
|
||||||
|
|
||||||
server.on("/click", handle_click);
|
server.on("/click", handle_click);
|
||||||
server.on("/light", handle_light);
|
server.on("/light", handle_light);
|
||||||
@@ -126,5 +130,5 @@ void handle_light(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
void handle_NotFound(){
|
void handle_NotFound(){
|
||||||
server.send(404, "text/plain", "Not found");
|
server.send(404, "text/plain", "On Air: Page not found");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user