pin versions

This commit is contained in:
2025-08-14 19:39:26 +02:00
parent 6aeb0c6181
commit b218f7569f
3 changed files with 6 additions and 18 deletions

1
.gitignore vendored
View File

@@ -1,3 +1,4 @@
.pio
.pioenvs
.piolibdeps
.vscode/.browse.c_cpp.db*

View File

@@ -13,28 +13,14 @@
[common]
framework = arduino
platform = espressif8266
platform = platformio/espressif8266@2.6.3
board = esp12e
upload_speed = 921600
monitor_baud = 115200
lib_deps =
Hash
TaskScheduler
SPIFFS
arkhipenko/TaskScheduler@^3.8.5
ArduinoJson@5.13.4
;[env:build]
;src_filter = +<*> -<examples/>
;platform = ${common.platform}
;board = ${common.board}
;upload_speed = ${common.upload_speed}
;monitor_baud = ${common.monitor_baud}
;framework = ${common.framework}
;lib_deps = ${common.lib_deps}
;build_flags = -DLED_PIN=2 -g
;upload_port = /dev/ttyUSB0
;upload_port = 192.168.1.168
[env:basic]
platform = ${common.platform}
board = ${common.board}

View File

@@ -35,8 +35,9 @@ struct JsonStruct
DynamicJsonBuffer jsonBuffer(JSON_ARRAY_SIZE(300));
JsonObject &root = jsonBuffer.createObject();
mapJsonObject(root);
char jsonChar[jsonBuffer.size()];
root.printTo((char*)jsonChar, root.measureLength() + 1);
size_t jsonSize = root.measureLength() + 1;
char* jsonChar = new char[jsonSize];
root.printTo(jsonChar, jsonSize);
return jsonChar;
}