A wrapper class for talking to Axeda from MBED devices. Uses HTTPClient and MbedJSONValue classes.
Dependents: axeda_wrapper_dev MTS_Axeda_Example
AxedaWrapper simplifies pushing data to Axeda's cloud.
Uses HTTPClient and MbedJSONValue libs:
http://mbed.org/users/donatien/code/HTTPClient/
http://mbed.org/users/samux/code/MbedJSONValue/
Diff: AxedaWrapper.h
- Revision:
- 3:134410324a6a
- Parent:
- 2:99baa98f84a3
- Child:
- 4:76c124f0a842
--- a/AxedaWrapper.h Mon Dec 23 19:17:03 2013 +0000 +++ b/AxedaWrapper.h Fri Dec 27 20:58:22 2013 +0000 @@ -30,13 +30,10 @@ * @param value The value to be stored. */ void push(const std::string& key, const std::string& value); - void push(const char* key, const char* value); + void push(const std::string& key, const char* value); void push(const std::string& key, int value); - void push(const char* key, int value); void push(const std::string& key, double value); - void push(const char* key, double value); void push(const std::string& key, bool value); - void push(const char* key, bool value); /** toString * Returns a std::string containing the serialized json contents of the internal map @@ -63,13 +60,10 @@ * @return true if the value was sent successfully, false otherwise */ bool send(const std::string& key, const std::string& value); - bool send(const char* key, const char* value); + bool send(const std::string& key, const char* value); bool send(const std::string& key, int value); - bool send(const char* key, int value); bool send(const std::string& key, double value); - bool send(const char* key, double value); bool send(const std::string& key, bool value); - bool send(const char* key, bool value); /** sendAll * Sends all the key-value pairs in the internal map to the Axeda platform