From 0fb3568c6ad31e8d6b0ba1845153e6ebb8dfaa3b Mon Sep 17 00:00:00 2001 From: Jan-Piet Mens Date: Fri, 12 Jan 2024 12:13:39 +0100 Subject: [PATCH] do not pretty-print (and re-code) data in tour publishes closes #437 --- recorder.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recorder.c b/recorder.c index 56bf4ad..126c913 100644 --- a/recorder.c +++ b/recorder.c @@ -495,7 +495,7 @@ void do_request(struct udata *ud, UT_string *username, UT_string *device, char * } #ifdef WITH_MQTT - if ((js = json_stringify(resp, " ")) != NULL) { + if ((js = json_stringify(resp, NULL)) != NULL) { publish(ud, UB(fulltopic), js); free(js); } @@ -561,7 +561,7 @@ void do_request(struct udata *ud, UT_string *username, UT_string *device, char * } #ifdef WITH_MQTT - if ((js = json_stringify(resp, " ")) != NULL) { + if ((js = json_stringify(resp, NULL)) != NULL) { publish(ud, UB(fulltopic), js); free(js); }