summaryrefslogtreecommitdiff
path: root/fw/app/src/http.c
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2025-04-16 22:14:06 +0200
committerxengineering <me@xengineering.eu>2025-04-16 22:14:06 +0200
commit686e372d42002a189a1e9b73e387e3414a97fc97 (patch)
tree6286d89d051ed839b65db9ac1a92cf2ff8af32ee /fw/app/src/http.c
parent04b2fd43f67cd191e5b38c93ec6f20b06b7946e1 (diff)
downloadiot-contact-686e372d42002a189a1e9b73e387e3414a97fc97.tar
iot-contact-686e372d42002a189a1e9b73e387e3414a97fc97.tar.zst
iot-contact-686e372d42002a189a1e9b73e387e3414a97fc97.zip
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.
Diffstat (limited to 'fw/app/src/http.c')
-rw-r--r--fw/app/src/http.c2
1 files changed, 2 insertions, 0 deletions
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;