|
| From: | Mike Tubby |
| Subject: | Re: [gpsd-users] Polling for GPS data using python3 API |
| Date: | Tue, 13 Aug 2019 21:15:30 +0100 |
| User-agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 |
|
On 13/08/2019 20:19, pisymbol . wrote:
I think you should be reading with select() https://docs.python.org/3.7/library/select.html or using the high-level selectors module: https://docs.python.org/3.7/library/selectors.html#module-selectors and treating the GPS handling as event driven, i.e. handing on a select for IO events and up-calling your processing code each time you get a new record from gpds. Mike |
| [Prev in Thread] | Current Thread | [Next in Thread] |