Own fork of MbedSmartRestMain
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
util/SmartRestTemplate.h
- Committer:
- xinlei
- Date:
- 2016-08-08
- Revision:
- 138:f8ab852e83e7
- Parent:
- 91:48069375dffa
File content as of revision 138:f8ab852e83e7:
#ifndef SMARTRESTTEMPLATE_H #define SMARTRESTTEMPLATE_H #include "DataGenerator.h" #define SMARTREST_TEMPLATE_FIXED_SIZE 64 /** * A data generator implementation holding an array of template lines * to send via .bootstrap(). */ class SmartRestTemplate : public DataGenerator { public: SmartRestTemplate(); bool add(const char*); virtual size_t writeTo(AbstractDataSink&) const; virtual size_t writtenLength() const; virtual DataGenerator* copy() const; private: const char *_buffer[SMARTREST_TEMPLATE_FIXED_SIZE]; size_t _len; }; #endif