tytower wrote:http://www.esp8266.com/viewtopic.php?f=6&t=2872&p=18357#p18357
In there there is a postData function to Sparkfuns server
Thanks tytower, but that appears to be a GET request, not a POST.
Jim
Explore... Chat... Share...
Moderator: igrr
tytower wrote:http://www.esp8266.com/viewtopic.php?f=6&t=2872&p=18357#p18357
In there there is a postData function to Sparkfuns server
torntrousers wrote:Does the updateThingSpeak function in this sample sketch show you what you want?
void post()
{
WiFiClient client;
String PostData = "temp=1";
client.println("POST /index.php HTTP/1.1");
client.println("Host: ***EDIT*** your-end-domain.com***EDIT***");
client.println("User-Agent: Arduino/1.0");
client.println("Connection: close");
client.println("Content-Type: application/x-www-form-urlencoded;");
client.print("Content-Length: ");
client.println(PostData.length());
client.println();
client.println(PostData);
delay(10);
// Read all the lines of the reply from server and print them to Serial
while(client.available()){
String line = client.readStringUntil('\r');
Serial.print(line);
}
}
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[…]