HTTP Post with SMING
Posted: Wed Dec 16, 2015 2:48 am
I am trying to do a HTTP POST with SMING. From the documentation https://github.com/SmingHub/Sming, I can see an example for HTTP GET but not POST.
Are there any sample code or example for doing HTTP Post?
Code: Select all
HttpClient thingSpeak;
...
thingSpeak.downloadString("http://api.thingspeak.com/update?key=XXXXXXX&field1=" + String(sensorValue), onDataSent);
void onDataSent(HttpClient& client, bool successful)
{
if (successful)
Serial.println("Successful!");
else
Serial.println("Failed");
}
Are there any sample code or example for doing HTTP Post?