serial-device/transport/base/__init__.py
2023-10-01 22:41:21 +03:00

12 lines
287 B
Python

class TransportBase:
def __init__(self, config):
self.config = config
def writeline(self, cmd_str):
raise Exception('Implement me!')
def readline(self):
raise Exception('Implement me!')
def close(self):
raise Exception('Implement me!')