diff options
author | Gary E. Miller <gem@rellim.com> | 2018-07-14 14:42:40 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2018-07-14 14:42:40 -0700 |
commit | 5e95e79c115e5fdcf127aba5668ee8321c2d7747 (patch) | |
tree | 0796b7c3892eb5dc6898379f827bac77c185193a /shared_json.c | |
parent | 29ae0aee57b71053f000f8b8cbc0386a6b1a1e4a (diff) | |
download | gpsd-5e95e79c115e5fdcf127aba5668ee8321c2d7747.tar.gz |
update gpsd to send arbitrary data to GPS from client
New ?DEVICE:{"hexdata":"data" option.
Diffstat (limited to 'shared_json.c')
-rw-r--r-- | shared_json.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shared_json.c b/shared_json.c index 38957680..89987edf 100644 --- a/shared_json.c +++ b/shared_json.c @@ -41,6 +41,8 @@ int json_device_read(const char *buf, .len = sizeof(dev->driver)}, {"subtype", t_string, .addr.string = dev->subtype, .len = sizeof(dev->subtype)}, + {"hexdata", t_string, .addr.string = dev->hexdata, + .len = sizeof(dev->hexdata)}, {"native", t_integer, .addr.integer = &dev->driver_mode, .dflt.integer = DEVDEFAULT_NATIVE}, {"bps", t_uinteger, .addr.uinteger = &dev->baudrate, |