To send data to thingspeak you can write this on adrees bar:
https://api.thingspeak.com/update?api_key=CTRBIYTTYTAJB31G&field1=5
With arduino you can do it like this(full example here):
byte sd = stash.create();
stash.print("temp=");
stash.print(value); // temp value
stash.save();
Stash::prepare(PSTR("POST /update HTTP/1.0" "\r\n"
"Host: $F" "\r\n"
"Connection: close" "\r\n"
"X-THINGSPEAKAPIKEY: $F" "\r\n"
"Content-Type: application/x-www-form-urlencoded" "\r\n"
"Content-Length: $D" "\r\n"
"\r\n"
"$H"),
website, PSTR(APIKEY), stash.size(), sd);
I have build a simple webpage to insert values via address bar:
http://jimpir.atwebpages.com?temp=30
My web aplication gets the value by this:
<?php
if (isset($_GET['temp'])) {
echo "The variable value is ", $_GET['temp'], ".";
} else {
echo "Variable not set.";
}
?>
How can i make stash prepare to send values to my own webpage with Arduino?