Uploading sensor data (voltage divider, MAX4172, INA219) over Ethernet to Thing Speak service. Uses old mbed revision that is compatible with NetServices library. I2C communication is made with I2CR library.

Dependencies:   C12832 I2CR INA219 NetServices mbed

Fork of NetServices_HelloWorld by Segundo Equipo

Revision:
8:9b35ac104ab7
Parent:
7:1da0a084cd69
diff -r 1da0a084cd69 -r 9b35ac104ab7 ThingSpeak.h
--- a/ThingSpeak.h	Sun Nov 29 13:41:05 2015 +0000
+++ b/ThingSpeak.h	Sun Nov 29 14:26:32 2015 +0000
@@ -1,3 +1,10 @@
+#ifndef THINGSPEAK_H
+#define THINGSPEAK_H
+#define HOSTNAME "mbed"
+#include "mbed.h"
+#include "EthernetNetIf.h"
+#include "HTTPClient.h"
+
 /** Class for sending data to ThingSpeak over ethernet,
  *  Class is using old mbed library revision and EthernetNetIf from
  *  https://developer.mbed.org/users/okini3939/notebook/TCPSocket_jp/
@@ -17,15 +24,6 @@
  * }
  * @endcode
 */
-
-#ifndef THINGSPEAK_H
-#define THINGSPEAK_H
-#define HOSTNAME "mbed"
-#include "mbed.h"
-#include "EthernetNetIf.h"
-#include "HTTPClient.h"
-
-
 class ThingSpeak
 {