goatchurchprime / godot-mqtt

Godot addon which implements the MQTT client protocol
MIT License
21 stars 2 forks source link

Connecting to a broker with username and password #3

Closed leleb closed 10 months ago

leleb commented 10 months ago

How to connect to an mqtt broker which requires username/password?

leleb commented 10 months ago

Answer myself: just add @export to variables user and pswd. also found that ssl and wss connection was problematic, had to set TLSOptions.client_unsafe() option in connect_to_stream e connect_to_url function