M2X Ethernet demo using Seeed Ethernet W5200 Shield

Dependencies:   LM75B M2XStreamClient jsonlite mbed-rtos mbed Nucleo_Sensor_Shield

Fork of m2x-seeed_ethernet_demo by Sean Newton

Revision:
9:e52869d248ea
Parent:
8:3b1e8bfc22df
Child:
10:8cb13d51ba2f
--- a/main.cpp	Wed Dec 10 18:16:59 2014 +0000
+++ b/main.cpp	Wed Dec 10 21:51:23 2014 +0000
@@ -5,8 +5,8 @@
 #include "x_cube_mems.h"
 
 #define ST_NUCLEO
-char feedId[] = "0c76bf26149c9c01d8eec11553d1a6f2"; // Feed you want to post to
-char m2xKey[] = "76ee6b8414970d7ade8c75829d0cf879"; // Your M2X access key
+char feedId[] = "93d227b9c62b5dee9e7f8cbf003de3c6"; // Feed you want to post to
+char m2xKey[] = "f49e59d19c163c57bfa7680cc657d04d"; // Your M2X access key
 char tempStreamName[] = "temperature"; // Stream you want to post to M2X
 char humidityStreamName[] = "humidity"; // Stream you want to post to M2X
 
@@ -141,7 +141,7 @@
         TEMPERATURE_Value_f =(1.8 * TEMPERATURE_Value) +  32.0;                        
         printf("TEMP: %f C  %f F \r\n", TEMPERATURE_Value, TEMPERATURE_Value_f); 
                 
-        response = m2xClient.put(feedId, tempStreamName, TEMPERATURE_Value_f);       
+        response = m2xClient.updateStreamValue(feedId, tempStreamName, TEMPERATURE_Value_f);       
         printf("Post response code: %d\r\n", response);
         if (response == -1) 
         {
@@ -151,7 +151,7 @@
         
         /* Post humidity to M2X */
         printf("HUMIDITY: %f \r\n", HUMIDITY_Value);         
-        response = m2xClient.put(feedId, humidityStreamName, HUMIDITY_Value); 
+        response = m2xClient.updateStreamValue(feedId, humidityStreamName, HUMIDITY_Value); 
         printf("Post response code: %d\r\n", response);
         if (response == -1) 
         {