mirror of
https://github.com/owntracks/recorder.git
synced 2024-11-15 09:58:40 -07:00
parent
c06d4c59a7
commit
0fb3568c6a
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user