diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-09-28 20:32:35 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-09-28 20:32:35 +0000 |
commit | ebab9cfbe6bfdf1ef6f8bcda9af5d33cf251fbd8 (patch) | |
tree | 260a8c931577eba7e1adfa0aa60f05a76e6267e3 /www | |
parent | bd4d25af4f0769f6904dcd3a1f65c7d2c10306c8 (diff) | |
download | gpsd-ebab9cfbe6bfdf1ef6f8bcda9af5d33cf251fbd8.tar.gz |
Uniform treatmen of VERSION response in poll() and next().
Diffstat (limited to 'www')
-rw-r--r-- | www/protocol-transition.txt | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/www/protocol-transition.txt b/www/protocol-transition.txt index 16c39be4..6a26c63c 100644 --- a/www/protocol-transition.txt +++ b/www/protocol-transition.txt @@ -310,9 +310,12 @@ has had a corresponding Python gps-class send() method all along. The pre-existing interface using the poll() method and self.valid is still available and should work compatibly with a daemon speaking -JSON. However, data from the new responses (WATCH, VERSION, AIS, and -TIMING in particular) will be available only through the self.data -member. +JSON. One new feature has been added; after a VERSION response (which +a JSON-speaking instance of gpsd should emitwhen a connection is +opened) the version member of the session will be an object containing +version information. However, data from the new responses (WATCH, +VERSION, AIS, and TIMING in particular) will be available only through +the self.data member. The preferred way to use the new gps class is as an iterator factory, like this: |