mirror of
https://github.com/thingsboard/thingsboard-gateway
synced 2025-10-26 22:31:42 +08:00
28 lines
441 B
Python
28 lines
441 B
Python
import logging
|
|
from abc import ABC, abstractmethod
|
|
|
|
log = logging.getLogger("connector")
|
|
|
|
|
|
class Connector(ABC):
|
|
|
|
@abstractmethod
|
|
def open(self):
|
|
pass
|
|
|
|
@abstractmethod
|
|
def close(self):
|
|
pass
|
|
|
|
@abstractmethod
|
|
def get_name(self):
|
|
pass
|
|
|
|
@abstractmethod
|
|
def on_attributes_update(self, content):
|
|
pass
|
|
|
|
@abstractmethod
|
|
def server_side_rpc_handler(self, content):
|
|
pass
|