summaryrefslogtreecommitdiff
path: root/ais_json.c
diff options
context:
space:
mode:
authorChristian Gagneraud <chgans@gna.org>2012-05-23 00:27:04 +0100
committerChristian Gagneraud <cgagneraud@techworks.ie>2012-05-23 21:36:34 +0100
commitf2ba497b7ebe1158bb2e0088ad828c45600938ee (patch)
tree5abb21afc08b3465844c628639923840ceea9a04 /ais_json.c
parent6041bdbf72c9b92d50b5bad8a7e7ced9ef65678f (diff)
downloadgpsd-f2ba497b7ebe1158bb2e0088ad828c45600938ee.tar.gz
[AIS] Add UK/ROI AtoN monitoring data message handling
Diffstat (limited to 'ais_json.c')
-rw-r--r--ais_json.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ais_json.c b/ais_json.c
index 1b041b4c..7bc50daa 100644
--- a/ais_json.c
+++ b/ais_json.c
@@ -216,6 +216,12 @@ int json_ais_read(const char *buf,
imo = true;
}
}
+ else if (strstr(buf, "\"dac\":235,") != NULL || strstr(buf, "\"dac\":250,") != NULL) {
+ if (strstr(buf, "\"fid\":10,") != NULL) {
+ status = json_read_object(buf, json_ais6_fid10, endptr);
+ imo = true;
+ }
+ }
if (!imo) {
status = json_read_object(buf, json_ais6, endptr);
if (status == 0)