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

Files at this revision

API Documentation at this revision

Comitter:
tbjazic
Date:
Sun Nov 29 14:26:32 2015 +0000
Parent:
7:1da0a084cd69
Commit message:
premjesteni koemntari klase tocno prije deklaracije, kako bi se ispravno generirala dokumentacija

Changed in this revision

Sensor.h Show annotated file Show diff for this revision Revisions of this file
ThingSpeak.h Show annotated file Show diff for this revision Revisions of this file
diff -r 1da0a084cd69 -r 9b35ac104ab7 Sensor.h
--- a/Sensor.h	Sun Nov 29 13:41:05 2015 +0000
+++ b/Sensor.h	Sun Nov 29 14:26:32 2015 +0000
@@ -1,3 +1,7 @@
+#ifndef _SENSOR_H
+#define SENSOR_H  
+#include "mbed.h"
+
 /** Simple class for sensor with linear otuput. Made for later upgrading, to avarage values from ADC
  * Example:
  * @code
@@ -14,10 +18,6 @@
  * @endcode
 
 */
-#ifndef _SENSOR_H
-#define SENSOR_H  
-#include "mbed.h"
-
 class Sensor {
      
      public:
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
 {