goatchurchprime / godot-mqtt

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

Connecting to a broker with username and password #3

Closed leleb closed 11 months ago

leleb commented 11 months ago

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

leleb commented 11 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