serial-device/transport/base/__init__.py

13 lines
287 B
Python
Raw Normal View History

2023-10-01 22:41:21 +03:00
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!')