INNER CODE UNIT · Python

connection

sabuhish/fastapi-mqtt · fastapi_mqtt/fastmqtt.py:122

    async def connection(self) -> None:
        if self.client._username:
            self.client.set_auth_credentials(self.client._username, self.client._password)
            self._logger.debug("user is authenticated")

        await self.__set_connetion_config()

        version = self.config.version or MQTTv50
        self._logger.info("Used broker version is %s", version)

        await self.client.connect(
            self.client._host,
            self.client._port,
            self.client._ssl,
            self.client._keepalive,
            version,
        )
        self._logger.debug("Connected to broker")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…