From 686e372d42002a189a1e9b73e387e3414a97fc97 Mon Sep 17 00:00:00 2001 From: xengineering Date: Wed, 16 Apr 2025 22:14:06 +0200 Subject: WIP: fw: app: Fix SEGFAULT TODO: Only JSON numbers seem to be encodable. Strings lead to SEGFAULT TODO: For some reason the encoded string is not part of the HTTP response. --- fw/app/src/http.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'fw/app/src/http.c') diff --git a/fw/app/src/http.c b/fw/app/src/http.c index 83a3568..eb3d695 100644 --- a/fw/app/src/http.c +++ b/fw/app/src/http.c @@ -107,6 +107,8 @@ static int settings_handler( return ret; } + LOG_INF("Encoded: '%s'", buffer); + response_ctx->body = (const uint8_t *)buffer; response_ctx->body_len = ret; response_ctx->final_chunk = true; -- cgit v1.2.3-70-g09d2