Commit ff2ade6b authored by Daniel Kolibár's avatar Daniel Kolibár
Browse files

changed brokrr to custom secured one on hivemq cloud

parent d90fd6a6
......@@ -87,11 +87,12 @@ mongo_client = motor.motor_asyncio.AsyncIOMotorClient(os.getenv('MONGO_URL', def
DB = mongo_client.birdie
app = FastAPI()
mqtt_config = MQTTConfig(
host = "broker.hivemq.com",
port= 1883,
host = "50ffbd7e701c480ca097875a1621692c.s1.eu.hivemq.cloud",
port= 8883,
keepalive = 60,
username=None,
password=None
username="birdie",
password="tjhpnHMQb2021",
ssl=True
)
mqtt = FastMQTT(config=mqtt_config)
mqtt.init_app(app)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment