Libery to interface thingspeak

Dependents:   Skanderborg1

Fork of ThingCloud by Skovbrynet

Revision:
0:ac8067fb9cee
Child:
1:6f2f82b98d1f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/thingspeak.h	Wed Jun 22 15:58:19 2016 +0000
@@ -0,0 +1,20 @@
+#ifndef MBED_THINGSPEAK_H 
+#define MBED_THINGSPEAK_H 
+
+#define TRUE    1
+#define FALSE   0
+#define IPThingSpeak "184.106.153.149" 
+
+class THINGSPEAK{
+public:
+  THINGSPEAK(); //Construcktor
+  void AddFloat(float Value);
+  void AddInt(int Value);
+  void SendData(char* apikey);
+private: 
+ char thingStr[1000]; //streng til at sende data med
+ char *p;
+ int FieldNumber;
+ int ThingString(char* apikey, char* data,int MessSize);    
+};
+#endif  /*#define MBED_THINGSPEAK_H*/
\ No newline at end of file