Commit b9b79bb 1 parent c1f39fb commit b9b79bb Copy full SHA for b9b79bb
File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 80
80
#endif
81
81
82
82
#define EMSESP_JSON_SIZE_XXLARGE_DYN 16384 // for extra very very large json docs, using DynamicJsonDocument
83
- #define EMSESP_JSON_SIZE_XXXLARGE_DYN 20480 // web output (maybe for 4 hc)
83
+ #define EMSESP_JSON_SIZE_XXXLARGE_DYN 12288 // web output (maybe for 4 hc)
84
84
85
85
// helpers for callback functions
86
86
#define MAKE_PF_CB (__f ) [&](std::shared_ptr<const Telegram> t) { __f (t); } // for Process Function callbacks to EMSDevice::process_function_p
Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ void WebCustomizationService::devices(AsyncWebServerRequest * request) {
200
200
// send back list of device entities
201
201
void WebCustomizationService::device_entities (AsyncWebServerRequest * request, JsonVariant & json) {
202
202
if (json.is <JsonObject>()) {
203
- auto * response = new MsgpackAsyncJsonResponse (true , EMSESP_JSON_SIZE_XXLARGE_DYN );
203
+ auto * response = new MsgpackAsyncJsonResponse (true , EMSESP_JSON_SIZE_XXXLARGE_DYN );
204
204
if (!response->getSize ()) {
205
205
delete response;
206
206
response = new MsgpackAsyncJsonResponse (true , 256 );
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ void WebDataService::sensor_data(AsyncWebServerRequest * request) {
165
165
// Compresses the JSON using MsgPack https://msgpack.org/index.html
166
166
void WebDataService::device_data (AsyncWebServerRequest * request, JsonVariant & json) {
167
167
if (json.is <JsonObject>()) {
168
- auto * response = new MsgpackAsyncJsonResponse (false , EMSESP_JSON_SIZE_XXLARGE_DYN );
168
+ auto * response = new MsgpackAsyncJsonResponse (false , EMSESP_JSON_SIZE_XXXLARGE_DYN );
169
169
if (!response->getSize ()) {
170
170
delete response;
171
171
response = new MsgpackAsyncJsonResponse (false , 256 );
You can’t perform that action at this time.
0 commit comments