ARM mbed M2X API Client: The ARM mbed client library is used to send/receive data to/from AT&T's M2X service from mbed LPC1768 microcontrollers.

Dependents:   m2x-demo-all M2X_MTS_ACCEL_DEMO M2X_MTS_Accel M2X_K64F_ACCEL ... more

Revision:
19:4dfa28d37b8f
Parent:
18:510895884768
Child:
21:6878944d2ce2
diff -r 510895884768 -r 4dfa28d37b8f M2XStreamClient.h
--- a/M2XStreamClient.h	Mon Dec 28 14:30:33 2015 +0000
+++ b/M2XStreamClient.h	Fri Jan 01 15:48:18 2016 +0000
@@ -127,6 +127,20 @@
                         const char* names[], const int counts[],
                         const char* ats[], T values[]);
 
+  // Post multiple values of a single device at once.
+  // +deviceId+ - id of the device to post values
+  // +streamNum+ - Number of streams to post
+  // +names+ - Array of stream names, the length of the array should
+  // be exactly +streamNum+
+  // +values+ - Array of values to post, the length of the array should
+  // be exactly +streamNum+. Notice that the array of +values+ should
+  // match the array of +names+, and that the ith value in +values+ is
+  // exactly the value to post for the ith stream name in +names+
+  template <class T>
+  int postSingleDeviceUpdate(const char* deviceId, int streamNum,
+                             const char* names[], T values[],
+                             const char* at = NULL);
+
   // Fetch values for a particular data stream. Since memory is
   // very limited on an Arduino, we cannot parse and get all the
   // data points in memory. Instead, we use callbacks here: whenever