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:
- 1:dcc2714b5bcb
- Parent:
- 0:7dca16f75bae
- Child:
- 3:a724fe60de46
diff -r 7dca16f75bae -r dcc2714b5bcb Ambient.h
--- a/Ambient.h Sat May 07 01:40:02 2016 +0000
+++ b/Ambient.h Mon Jun 06 11:41:56 2016 +0000
@@ -1,5 +1,5 @@
-#ifndef AMBIENT_H
-#define AMBIENT_H
+#ifndef Ambient_h
+#define Ambient_h
#include "mbed.h"
#include "TCPSocketConnection.h"
@@ -9,7 +9,7 @@
#define AMBIENT_DATA_SIZE 24
#define AMBIENT_NUM_PARAMS 11
-/** AMBIENT class
+/** Ambient class
* to send data to Ambient service.
*
* Exsample:
@@ -21,7 +21,7 @@
*
* unsigned int channelId = 100;
* const char* writeKey = "ライトキー";
- * AMBIENT ambient;
+ * Ambient ambient;
*
* HDC1000 hdc1000(p9,p10);
*
@@ -58,12 +58,12 @@
* }
* @endcode
*/
-class AMBIENT
+class Ambient
{
public:
- /** Create AMBIENT instance
+ /** Create Ambient instance
*/
- AMBIENT(void);
+ Ambient(void);
/** Initialize the instance
* @param channelId Initialize the Ambient instance with channelId.
@@ -109,4 +109,4 @@
} data[AMBIENT_NUM_PARAMS];
};
-#endif // AMBIENT_H
\ No newline at end of file
+#endif // Ambient_h
\ No newline at end of file
Takehiko Shimojima
Ambient