From bccdc212f248273b0dd604c9f5a5cbed44314d40 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Mon, 22 Feb 2016 21:55:45 -0800 Subject: [PATCH] More info in JSON header. --- adsbus/json.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/adsbus/json.c b/adsbus/json.c index 7b6317b..7939a5d 100644 --- a/adsbus/json.c +++ b/adsbus/json.c @@ -9,6 +9,7 @@ #include "rand.h" #include "receive.h" #include "send.h" +#include "server.h" #include "uuid.h" #include "json.h" @@ -20,7 +21,10 @@ static void json_serialize_to_buf(json_t *obj, struct buf *buf) { } static void json_hello(struct buf *buf) { - json_t *hello = json_pack("{sIsIsI}", + json_t *hello = json_pack("{sssssssIsIsI}", + "type", "header", + "server_version", server_version, + "server_id", server_id, "mlat_timestamp_mhz", (json_int_t) PACKET_MLAT_MHZ, "mlat_timestamp_max", (json_int_t) PACKET_MLAT_MAX, "rssi_max", (json_int_t) PACKET_RSSI_MAX);