-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use separate thread to read packets from serial port #15
Conversation
67662ae
to
8be20a7
Compare
…test TST: Fix info packets test
'origin/feature/add-ability-to-provide-command-routines' into fix/read-from-serial-port-in-separate-thread
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice! Only one nitpick on the ReaderThread subclass
@@ -16,7 +16,7 @@ | |||
|
|||
setup( | |||
name="data_gateway", | |||
version="0.8.0", | |||
version="0.8.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Multi threading feels like a new feature 😂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I guess, I'm doing it to fix a bug though :P I think I'll probably change it to a minor version increase.
Summary
Separate serial port reading from packet parsing, processing, and persistence to avoid data loss due to serial port overflow.
Contents (#15)
Enhancements
serial.threading
to bulk read packets from serial port in a separate threadRefactoring
PacketReader._parse_payload
toPacketReader.parse_payload
Testing