watch using the RSSI of Bluetooth
Dependencies: BaseUsbHost ConfigFile EthernetInterface HTTPClient-long mbed-rtos mbed
Diff: CosmClient/CosmClient.h
- Revision:
- 0:600fe65e7c88
diff -r 000000000000 -r 600fe65e7c88 CosmClient/CosmClient.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/CosmClient/CosmClient.h Sun Jan 20 09:22:31 2013 +0000 @@ -0,0 +1,27 @@ +#ifndef COSM_CLIENT_H +#define COSM_CLIENT_H +#include "HTTPClient.h" +#include <string> + +class CosmClient { +public: + CosmClient(const char* apiKey = NULL, const char* feedID = NULL); + void setApikey(const char* apiKey) { + m_apiKey = apiKey; + } + void setFeedID(const char* feedID) { + m_feedID = feedID; + } + void putCsv(const char* feedID, ...); + void clear(); + void add(const char* id, int value, const char* format="%d"); + void add(const char* id, float value, const char* format="%f"); + void add(int id, float value, const char* format="%f"); + int update(); +private: + string m_buf; + string m_apiKey; + string m_feedID; +}; + +#endif //COSM_CLIENT_H