Own fork of MbedSmartRest

Dependents:   MbedSmartRestMain MbedSmartRestMain

Fork of MbedSmartRest by Cumulocity Official

Revision:
1:9a11a331e340
Parent:
0:099f76422485
Child:
2:45a6e44a4fb4
--- a/SmartRest.h	Thu Jul 03 20:38:04 2014 +0200
+++ b/SmartRest.h	Mon Jul 07 16:14:51 2014 +0200
@@ -93,7 +93,7 @@
 {
 protected:
     /**
-     * Creates a new GenericSmartRest object.
+     * Creates a new generic SmartRest object.
      * @param client the abstract client to use
      * @param identifier the device identifier
      */
@@ -106,9 +106,13 @@
      * Sends a smart request.
      * @param generator the generator which will generate the data to be
      *                  sent.
+     * @param overrideIdentifier a device identifier which gets sent instead
+     *                           of the identifier specified in the
+     *                           constructor. If an empty string is
+     *                           specified, no identifier is sent at all.
      * @return a non-zero value if and only if an error occured
      */
-    int8_t send(DataGenerator&);
+    int8_t send(const DataGenerator& generator, const char *overrideIdentifier=NULL);
 
     /**
      * Tries to receive a parsed response row.
@@ -135,7 +139,7 @@
     void stop();
 
 protected:
-    uint8_t beginRequest();
+    uint8_t beginRequest(const char*);
     uint8_t awaitResponse();
     bool setMoGid(ParsedRecord&);