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