mirror of
https://github.com/owntracks/recorder.git
synced 2026-05-05 02:36:45 +00:00
@@ -494,10 +494,12 @@ void do_request(struct udata *ud, UT_string *username, UT_string *device, char *
|
||||
return;
|
||||
}
|
||||
|
||||
#ifdef WITH_MQTT
|
||||
if ((js = json_stringify(resp, " ")) != NULL) {
|
||||
publish(ud, UB(fulltopic), js);
|
||||
free(js);
|
||||
}
|
||||
#endif
|
||||
json_delete(resp);
|
||||
|
||||
} else if (strcmp(request_type, "tours") == 0) {
|
||||
@@ -558,10 +560,12 @@ void do_request(struct udata *ud, UT_string *username, UT_string *device, char *
|
||||
return;
|
||||
}
|
||||
|
||||
#ifdef WITH_MQTT
|
||||
if ((js = json_stringify(resp, " ")) != NULL) {
|
||||
publish(ud, UB(fulltopic), js);
|
||||
free(js);
|
||||
}
|
||||
#endif
|
||||
|
||||
json_delete(resp);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user