Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: AmbientExampleSITB AmbientHeartRateMonitor AmbientHeartBeat AmbientExampleSITB_ws ... more
Diff: Ambient.h
- Revision:
- 4:fcbd652bbb7a
- Parent:
- 3:a724fe60de46
diff -r a724fe60de46 -r fcbd652bbb7a Ambient.h
--- a/Ambient.h Mon Jun 13 12:03:41 2016 +0000
+++ b/Ambient.h Wed Jan 25 12:28:14 2017 +0000
@@ -75,6 +75,7 @@
* false on failure
*/
bool init(unsigned int channelId, const char * writeKey, TCPSocketConnection * s, int dev = 0);
+
/** Set data on field-th field of payload.
* @param field index of payload (1 to 8)
* @param data data
@@ -83,6 +84,25 @@
* false on failure
*/
bool set(int field, char * data);
+
+ /** Set data on field-th field of payload.
+ * @param field index of payload (1 to 8)
+ * @param data data
+ * @returns
+ * true on success,
+ * false on failure
+ */
+ bool set(int field, int data);
+
+ /** Set data on field-th field of payload.
+ * @param field index of payload (1 to 8)
+ * @param data data
+ * @returns
+ * true on success,
+ * false on failure
+ */
+ bool set(int field, double data);
+
/** Clear data on field-th field of payload.
* @param field index of payload (1 to 8)
* @returns
Ambient