forked from me-no-dev/ESPAsyncWebServer
the destructor was not defined
This commit is contained in:
@@ -18,15 +18,15 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
#ifndef ASYNC_JSON_H_
|
||||||
#pragma once
|
#define ASYNC_JSON_H_
|
||||||
#include <ArduinoJson.h>
|
#include <ArduinoJson.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Json Response
|
* Json Response
|
||||||
* */
|
* */
|
||||||
|
|
||||||
class ChunkPrint : public Print{
|
class ChunkPrint : public Print {
|
||||||
private:
|
private:
|
||||||
uint8_t* _destination;
|
uint8_t* _destination;
|
||||||
size_t _to_skip;
|
size_t _to_skip;
|
||||||
@@ -35,7 +35,7 @@ class ChunkPrint : public Print{
|
|||||||
public:
|
public:
|
||||||
ChunkPrint(uint8_t* destination, size_t from, size_t len)
|
ChunkPrint(uint8_t* destination, size_t from, size_t len)
|
||||||
: _destination(destination), _to_skip(from), _to_write(len), _pos{0} {}
|
: _destination(destination), _to_skip(from), _to_write(len), _pos{0} {}
|
||||||
virtual ~ChunkPrint();
|
virtual ~ChunkPrint(){}
|
||||||
size_t write(uint8_t c){
|
size_t write(uint8_t c){
|
||||||
if (_to_skip > 0) {
|
if (_to_skip > 0) {
|
||||||
_to_skip--;
|
_to_skip--;
|
||||||
@@ -74,4 +74,5 @@ class AsyncJsonResponse: public AsyncAbstractResponse {
|
|||||||
_root.printTo( dest ) ;
|
_root.printTo( dest ) ;
|
||||||
return len;
|
return len;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
Reference in New Issue
Block a user