From 6476cb4ec71ab640ab8ccca75ba55a8b5e9500f5 Mon Sep 17 00:00:00 2001 From: Pat Thoyts Date: Sat, 15 Jun 2024 16:28:55 +0100 Subject: [PATCH] issue #450: add card data to websocket notifications When processing the most recent location update this gets pushed over the websocket to update the live map last position. If a card is present it needs to be added just before this push occurs. --- recorder.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recorder.c b/recorder.c index 78aa7ab..7f323b6 100644 --- a/recorder.c +++ b/recorder.c @@ -1373,6 +1373,8 @@ void handle_message(void *userdata, char *topic, char *payload, size_t payloadle safewrite(UB(ts), jsonstring); free(jsonstring); } + + append_card_to_object(json, UB(username), UB(device)); } }