[ONB] Fix max buffer size (#1972)

This commit is contained in:
Florian authored and GitHub committed 2024-06-18 12:51:48 -05:00
1 parent 4bb7c5502d
commit aa5fd3cb0b
1 file changed
+1 -1
+1 -1
View File
@@ -137,7 +137,7 @@ static void example_event_callback(esp_blufi_cb_event_t event, esp_blufi_cb_para
Log.notice(F("Recv Custom Data %" PRIu32 CR), param->custom_data.data_len);
esp_log_buffer_hex("Custom Data", param->custom_data.data, param->custom_data.data_len);
DynamicJsonDocument json(1024);
DynamicJsonDocument json(JSON_MSG_BUFFER_MAX);
auto error = deserializeJson(json, param->custom_data.data);
if (error) {
Log.error(F("deserialize config failed: %s, buffer capacity: %u" CR), error.c_str(), json.capacity());