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.
This commit is contained in:
Pat Thoyts
2024-06-15 16:28:55 +01:00
parent 5f2723800d
commit 6476cb4ec7
+2
View File
@@ -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));
}
}