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

Dependents:   MbedSmartRestMain MbedSmartRestMain

Revision:
13:aba98ad2ac1b
Parent:
11:e1bee9a77652
--- a/SmartRest.h	Sat Nov 15 11:37:14 2014 +0100
+++ b/SmartRest.h	Sat Nov 15 12:21:41 2014 +0100
@@ -61,20 +61,14 @@
 		uint8_t request(const DataGenerator&, Aggregator&, const char* = NULL);
 #endif
 		uint8_t bootstrap(const DataGenerator&);
-#ifndef SMARTREST_TRANSACTIONAL
 		uint8_t send(const DataGenerator&, const char* = NULL);
+		uint8_t stream(const char*, const Record&, const char* = NULL);
 		uint8_t receive(ParsedRecord&);
 		void stop();
-#endif
 		const char * getIdentifier();
 
 	protected:
-#ifdef SMARTREST_TRANSACTIONAL
-		uint8_t send(const DataGenerator&, const char*);
-		uint8_t receive(ParsedRecord&);
-		void stop();
-#endif
-		uint8_t beginRequest(const char*);
+		uint8_t beginRequest(const char*, const char*);
 		uint8_t awaitResponse();
 		bool setMoGid(ParsedRecord&);