serial-device/transport/base/__init__.py

12 lines
289 B
Python

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