do not pretty-print (and re-code) data in tour publishes

closes #437
This commit is contained in:
Jan-Piet Mens 2024-01-12 12:13:39 +01:00
parent c06d4c59a7
commit 0fb3568c6a

View File

@ -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);
}