Better handling of opening and closing device in comm.py file
Closed this issue ยท 2 comments
๐ Feature Request
Let's see if we can modify the comm.py file to better handle opening and closing the device as needed. For example, we cannot use just the write function now because it doesn't open the device because it's opened in the write_read_line and other functions.
๐ Motivation
Allows us to use the write or read functions by themselves and just better code.
๐ฐ Alternatives
๐ Additional context
_write() works independently. Replaced _write_read with _write for start_stream() and stop_stream(). _read() and _readline() are written in the same format, but I haven't been able to test them.
Will need to verify other functions require reading and writing. If reading unnecessary, will replace with _write()
No other functions besides start_stream() and stop_stream() return nothing, even if just a dataframe.