martinayotte wrote:ESP8266WiFi (in ESP8266WiFiSTA.h)
So i need to include ESP8266WiFiSTA.h but that uses another way of connecting wifi ? I can't find an example.
Explore... Chat... Share...
martinayotte wrote:ESP8266WiFi (in ESP8266WiFiSTA.h)
void LaunchWifi()
{
// We start by connecting to a WiFi network
Serial.println();
Serial.println();
Serial.print("Connecting to ");
Serial.println(ssid);
WiFi.begin(ssid, password);
WiFi.config(ip,gateway,subnet);
int i = 0;
while (WiFi.status() != WL_CONNECTED) {
delay(500);
ESP.wdtFeed();
if(i>40)
ESP.reset();
i++;
WiFi.begin(ssid, password);
WiFi.config(ip,gateway,subnet);
}
bool ESP8266WiFiSTAClass::isConnected() {
return (status() == WL_CONNECTED);
}
It takes about 20-25 seconds for home assistant c[…]
I tried to upgrade tof my sonoff basic R2 with the[…]
a problem Perhaps you want to define "Probl[…]
Rebooting your router will not give you a faster I[…]
There are no other notifications from esptool.py i[…]
Using the Arduino IDE, you'll learn how to set up […]
In this project, you will post to Twitter using an[…]
In this project, we will build a water level contr[…]
I guess I'm late, but I had the same problem and f[…]
Last night I received my first D1 Minis for a lear[…]
Although I am aware that this is an old post, I fe[…]