On Air: Blink while searching WLAN
This commit is contained in:
@@ -30,12 +30,16 @@ void setup() {
|
||||
WiFi.begin(ssid, password);
|
||||
|
||||
while (WiFi.status() != WL_CONNECTED) {
|
||||
delay(500);
|
||||
Serial.print(".");
|
||||
delay(250);
|
||||
digitalWrite(BUILTIN_LED, LOW);
|
||||
delay(250);
|
||||
digitalWrite(BUILTIN_LED, HIGH);
|
||||
}
|
||||
Serial.println();
|
||||
Serial.print("IP address: ");
|
||||
Serial.println(WiFi.localIP());
|
||||
digitalWrite(BUILTIN_LED, HIGH);
|
||||
|
||||
server.on("/click", handle_click);
|
||||
server.on("/light", handle_light);
|
||||
@@ -126,5 +130,5 @@ void handle_light(){
|
||||
}
|
||||
|
||||
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