swimtracker-firmware/SessionChunkIO.h

19 lines
297 B
C++

#include <FS.h>
#include <ESP8266WebServer.h>
class ESP8266HttpMsgPackWriter {
public:
HttpWriterAdaptor(ESP8266WebServer
* o)
:
obj_(o) {}
void write(const char *data, uint32_t size) {
obj_->sendContent_P(data, size);
}
private:
ESP8266WebServer *obj_;
};