12345678910111213141516171819202122232425262728 |
- from abc import ABC, abstractmethod
- class Connector(ABC):
- @abstractmethod
- def open(self):
- pass
- @abstractmethod
- def close(self):
- pass
- @abstractmethod
- def get_name(self):
- pass
- @abstractmethod
- def is_connected(self):
- pass
- @abstractmethod
- def send_command(self, content):
- pass
- @abstractmethod
- def command_polling(self, content):
- pass
|