The library is designed to connect the MBED boards to the ThingSpeak IoT cloud.

Fork of Thingspeak by Reza Mashayekhi

Revision:
0:d98f92bb426f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Thingspeak.cpp	Mon Feb 12 10:18:15 2018 +0000
@@ -0,0 +1,11 @@
+#include "mbed.h"
+#include "Thingspeak.h"
+      
+HTTPResult Thingspeak::PostDataToChannel(char* channelWriteAPIKey, int fieldNumber, int fieldValue){
+    char url[100];          
+    sprintf( url, "https://api.thingspeak.com/update?api_key=%s&field%d=%d  ", channelWriteAPIKey, fieldNumber, fieldValue);   
+    HTTPMap map;
+    HTTPText text("", 1);
+    map.put("", "");
+    return _http.post(url, map, &text,1); 
+}