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")