I need to save an integer before deepsleep and have it available after deepsleep. Can i do that without involving EEPROM i mean a global variable ?
Donnib
Explore... Chat... Share...
File logF = SPIFFS.open("/humidlog.CSV", "a");
if (logF) {
logF.print(logdata);
logF.close();
ulMeasCount++;
}
else {
while(1);
}
// Use WiFiClient class to create Thingspeak Post
WiFiClient client;
if (!client.connect(hostts, 80)) {
return;
}
String url = "/update?key=";
url += thingspeak_key;
url += "&field1=";
url += pfTemp;
url += "&field2=";
url += pfHum;
url += "&field3=";
url += pfDew;
url += "&field4=";
url += pfVcC/1000, 3;
// This will send the request to the server
client.print(String("GET ") + url + " HTTP/1.1\r\n" +
"Host: " + hostts + "\r\n" +
"Connection: close\r\n\r\n");
delay(50);
client.stop();
}
// Make a HTTP GET request to the Thingspeak
// if you get a connection, report back via serial:
if (client.connect("184.106.153.149", 80)) {//Thingspeak IP
Serial.println("connected to server");
// Make a HTTP request:
client.println("GET http://api.thingspeak.com/channels/73184/field/1/last.txt");
client.println("Connection: close");
client.println();
}
while(!!!client.available()) {
yield();
}
String theData = client.readString();
Serial.println(theData);
client.flush();
client.stop();
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[…]