Wetterstation v2
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
729 B

5 years ago
/*
* Blink
* Turns on an LED on for one second,
* then off for one second, repeatedly.
*/
#include <Arduino.h>
5 years ago
#include <WiFi.h>
#include <WiFiMulti.h>
5 years ago
5 years ago
WiFiMulti wifiMulti;
5 years ago
void setup()
{
5 years ago
Serial.begin(115200);
5 years ago
// initialize LED digital pin as an output.
pinMode(LED_BUILTIN, OUTPUT);
5 years ago
wifiMulti.addAP(WIFI_SSID, WIFI_PASSWD);
wifiMulti.addAP(WIFI_SSID2, WIFI_PASSWD2);
Serial.println("Connecting Wifi...");
if(wifiMulti.run() == WL_CONNECTED) {
Serial.println("");
Serial.println("WiFi connected");
Serial.println("IP address: ");
Serial.println(WiFi.localIP());
}
5 years ago
}
void loop()
{
5 years ago
if(wifiMulti.run() != WL_CONNECTED) {
Serial.println("WiFi not connected!");
delay(1000);
}
5 years ago
}