Own fork of MbedSmartRest
Dependents: MbedSmartRestMain MbedSmartRestMain
Fork of MbedSmartRest by
Diff: AbstractSmartRest.h
- Revision:
- 20:505d29d5bdfc
- Parent:
- 13:aba98ad2ac1b
- Child:
- 24:11fd6fd14c28
diff -r 81dfc04ce0bb -r 505d29d5bdfc AbstractSmartRest.h --- a/AbstractSmartRest.h Fri Mar 20 14:26:52 2015 +0000 +++ b/AbstractSmartRest.h Mon Apr 13 14:24:44 2015 +0000 @@ -62,13 +62,6 @@ public: virtual ~AbstractSmartRest() { }; - /** - * Sets the client authorization. - * @param username the authorization username - * @param password the authorization password - */ - virtual uint8_t setAuthorization(const char*, const char*) = 0; - #ifdef SMARTREST_TRANSACTIONAL /** * Performs a SmartRest request without receiving any data from the @@ -122,6 +115,12 @@ virtual uint8_t send(const DataGenerator&, const char* = NULL) = 0; /** + * Same functionality and return value as the above, except the connection + * is closed immediately after sending, do NOT wait for response. + */ + virtual uint8_t sendAndClose(const DataGenerator&, const char* = NULL) = 0; + + /** * Starts a SmartRest stream. * @param uri the stream endpoint URI * @param record the record which will be sent to the endpoint @@ -151,7 +150,7 @@ * Retrieves the template identifier. * @return template identifier */ - virtual const char * getIdentifier() = 0; +// virtual const char * getIdentifier() const = 0; }; #endif