Own fork of MbedSmartRest
Dependents: MbedSmartRestMain MbedSmartRestMain
Fork of MbedSmartRest by
Diff: AbstractClient.h
- Revision:
- 1:9a11a331e340
- Parent:
- 0:099f76422485
- Child:
- 2:45a6e44a4fb4
--- a/AbstractClient.h Thu Jul 03 20:38:04 2014 +0200 +++ b/AbstractClient.h Mon Jul 07 16:14:51 2014 +0200 @@ -80,7 +80,8 @@ /** * Sends the X-Id device identifier header. * @param identifier the identifier to be sent. The value has to remain - * valid for the entire request. + * valid for the entire request. If null or empty, no + * identifier is sent. */ virtual uint8_t sendIdentifier(const char*) = 0; @@ -91,7 +92,7 @@ * unexpected behavior will occur. * @param generator the data generator for the data to be sent */ - virtual uint8_t sendData(DataGenerator& generator) = 0; + virtual uint8_t sendData(const DataGenerator& generator) = 0; /** * Finishes the request. In case no data has been sent over the