Today, the hardware and price point (inflation adjusted of course) is real with the esp8266.
Free tools available for everyone he did not even imagine!
Explore... Chat... Share...
Moderator: igrr
void DownloadFromServer()
{
WiFiClient client;
if (!client.connect("myserver", 80)) {
Serial.println("Failed to connect with 'myserver' !");
}
else {
client.print("GET /download.php HTTP/1.1\r\nHost: myserver\r\n\r\n");
delay(10);
if (!SPIFFS.begin()) {
Serial.println("SPIFFS failed to mount !\r\n");
}
else {
File f = SPIFFS.open("/Config.cfg", "w");
if (!f) {
Serial.println("Can't open Config.cfg !\r\n");
}
else {
while(client.available()){
String line = client.readStringUntil('\r');
f.write((uint8_t *)line.c_str(), line.length());
}
f.close();
}
}
}
}
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[…]