You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
405 B

class MQTTClientBase:
def __init__(self, host, user, password, client_id):
self.host = host
self.user = user
self.password = password
self.client_id = client_id
self._connect()
def send_data(self, topic, data):
raise NotImplementedError("Send not implemented")
def _connect(self):
raise NotImplementedError("Connect not implemented")