mbed.org implementation of the abstract SmartREST library for the Cumulocity Platform SmartREST protocol.

Dependents:   MbedSmartRestMain MbedSmartRestMain

Revision:
2:45a6e44a4fb4
Parent:
1:9a11a331e340
Child:
4:059b8b90e0d9
--- a/SmartRest.h	Mon Jul 07 16:14:51 2014 +0200
+++ b/SmartRest.h	Mon Jul 07 17:08:02 2014 +0200
@@ -102,6 +102,8 @@
 public:
     virtual ~SmartRest() { };
 
+    uint8_t setAuthorization(const char*, const char*);
+
     /**
      * Sends a smart request.
      * @param generator the generator which will generate the data to be
@@ -112,7 +114,7 @@
      *                           specified, no identifier is sent at all.
      * @return a non-zero value if and only if an error occured
      */
-    int8_t send(const DataGenerator& generator, const char *overrideIdentifier=NULL);
+    uint8_t send(const DataGenerator& generator, const char *overrideIdentifier=NULL);
 
     /**
      * Tries to receive a parsed response row.
@@ -121,7 +123,7 @@
      * @param record an instance to where the parsed row is written
      * @return a non-zero value if and only if an error occured
      */
-    int8_t receive(ParsedRecord&);
+    uint8_t receive(ParsedRecord&);
 
     /*
      * Initiates the SmartRest bootstrap process.
@@ -131,7 +133,7 @@
      *                  sent as a template.
      * @return a non-zero value if and only if an error occured
      */
-    int8_t bootstrap(DataGenerator&);
+    uint8_t bootstrap(DataGenerator&);
 
     /*
      * Closes the connection.