This repository was archived by the owner on Apr 28, 2022. It is now read-only.
File tree 4 files changed +7
-6
lines changed
4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -277,7 +277,7 @@ void handleSetWS2812FXMode(uint8_t * mypayload) {
277
277
String listStatusJSON (void ) {
278
278
uint8_t tmp_mode = (mode == SET_MODE) ? (uint8_t ) ws2812fx_mode : strip.getMode ();
279
279
280
- const size_t bufferSize = JSON_ARRAY_SIZE (3 ) + JSON_OBJECT_SIZE (6 );
280
+ const size_t bufferSize = JSON_ARRAY_SIZE (3 ) + JSON_OBJECT_SIZE (6 ) + 500 ;
281
281
DynamicJsonDocument jsonBuffer (bufferSize);
282
282
JsonObject root = jsonBuffer.to <JsonObject>();
283
283
root[" mode" ] = (uint8_t ) mode;
@@ -302,7 +302,7 @@ void getStatusJSON() {
302
302
}
303
303
304
304
String listModesJSON (void ) {
305
- const size_t bufferSize = JSON_ARRAY_SIZE (strip.getModeCount ()+1 ) + strip.getModeCount ()*JSON_OBJECT_SIZE (2 );
305
+ const size_t bufferSize = JSON_ARRAY_SIZE (strip.getModeCount ()+1 ) + strip.getModeCount ()*JSON_OBJECT_SIZE (2 ) + 1000 ;
306
306
DynamicJsonDocument jsonBuffer (bufferSize);
307
307
JsonArray json = jsonBuffer.to <JsonArray>();
308
308
for (uint8_t i = 0 ; i < strip.getModeCount (); i++) {
Original file line number Diff line number Diff line change 1
- #define SKETCH_VERSION "2.1.9 "
1
+ #define SKETCH_VERSION "2.1.10 "
Original file line number Diff line number Diff line change 41
41
* - Bump ArduinoJson library requirment for v6.7.0-beta (better memory management)
42
42
* - sendState() needs extra memory for jsonBuffer
43
43
* - sensState() effect can be sent directly instead of copying from PROGMEM
44
+ *
45
+ * 16 Dec 2018 v 1.1.10
46
+ * - more ArduinoJson library memory managment fixes
44
47
*/
Original file line number Diff line number Diff line change @@ -44,12 +44,10 @@ monitor_speed = ${common.monitor_speed}
44
44
upload_speed = ${common.upload_speed}
45
45
upload_resetmethod = ${common.upload_resetmethod}
46
46
47
-
48
-
49
47
lib_deps =
50
48
51
49
AsyncMqttClient
52
- https://github.com/bblanchon/ArduinoJson.git# v6.6 .0-beta
50
+ https://github.com/bblanchon/ArduinoJson.git# v6.7 .0-beta
53
51
WS2812FX
54
52
NeoPixelBus
55
53
WebSockets
You can’t perform that action at this time.
0 commit comments