Own fork of MbedSmartRest
Dependents: MbedSmartRestMain MbedSmartRestMain
Fork of MbedSmartRest by
Diff: SmartRest.h
- Revision:
- 11:e1bee9a77652
- Parent:
- 10:97077cfa13fc
- Child:
- 13:aba98ad2ac1b
diff -r 97077cfa13fc -r e1bee9a77652 SmartRest.h --- a/SmartRest.h Thu Oct 23 14:41:58 2014 +0200 +++ b/SmartRest.h Sat Nov 15 11:21:01 2014 +0100 @@ -47,43 +47,43 @@ */ class SmartRest : public AbstractSmartRest { -public: - /** - * Creates a new generic SmartRest object. - * @param client the abstract client to use - * @param identifier the device identifier - */ - SmartRest(AbstractClient&, const char*); + public: + /** + * Creates a new generic SmartRest object. + * @param client the abstract client to use + * @param identifier the device identifier + */ + SmartRest(AbstractClient&, const char*); - uint8_t setAuthorization(const char*, const char*); + uint8_t setAuthorization(const char*, const char*); #ifdef SMARTREST_TRANSACTIONAL - uint8_t request(const DataGenerator&, const char* = NULL); - uint8_t request(const DataGenerator&, Aggregator&, const char* = NULL); + uint8_t request(const DataGenerator&, const char* = NULL); + uint8_t request(const DataGenerator&, Aggregator&, const char* = NULL); #endif - uint8_t bootstrap(const DataGenerator&); + uint8_t bootstrap(const DataGenerator&); #ifndef SMARTREST_TRANSACTIONAL - uint8_t send(const DataGenerator&, const char* = NULL); - uint8_t receive(ParsedRecord&); - void stop(); + uint8_t send(const DataGenerator&, const char* = NULL); + uint8_t receive(ParsedRecord&); + void stop(); #endif - const char * getIdentifier(); + const char * getIdentifier(); -protected: + protected: #ifdef SMARTREST_TRANSACTIONAL - uint8_t send(const DataGenerator&, const char*); - uint8_t receive(ParsedRecord&); - void stop(); + uint8_t send(const DataGenerator&, const char*); + uint8_t receive(ParsedRecord&); + void stop(); #endif - uint8_t beginRequest(const char*); - uint8_t awaitResponse(); - bool setMoGid(ParsedRecord&); + uint8_t beginRequest(const char*); + uint8_t awaitResponse(); + bool setMoGid(ParsedRecord&); -private: - AbstractClient& _client; - AbstractDataSource *_source; - Parser _parser; - const char *_identifier; - char _mogid[8 * sizeof(long) + 1]; + private: + AbstractClient& _client; + AbstractDataSource *_source; + Parser _parser; + const char *_identifier; + char _mogid[8 * sizeof(long) + 1]; }; #endif