Closed peterhinch closed 6 years ago
Thanks for the improvement!
Thanks for the excellent parser! A very nice piece of code.
Just FYI I've nearly completed an asynchronous device driver for those GPS modules which use a UART to communicate. The driver uses an adapted version of your parser. Significantly uasyncio's StreamReader can return a complete line. Hence the update method is substantially simplified (taking as input a sentence rather than a character) consequently the class does not need to store state associated with the update process.
This pathch should enable it to run on generic MicroPython targets. Also tested on CPython 3.4.