Ambient library. It provides "set" function to set data to a packet and "send" function to send the packet to the Ambient server. It also provides "bulk_send" function to send multiple data. (Japanese: IoT用のクラウドサービス「Ambient」のデーター送信ライブラリーです。Ambientはマイコンから送られたセンサーデーターを受信し、蓄積し、可視化(グラフ化)します。http://ambidata.io)
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
Takehiko Shimojima
Ambient