You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to connect to a MQTT Broker with username/password authentication but I can't get the MQTTClient to connect.
Calling client.run() throws
Exception in thread "main" io.github.davidepianca98.socket.IOException: Connection reset
at io.github.davidepianca98.socket.tcp.Socket.readToBuffer(Socket.kt:70)
at io.github.davidepianca98.socket.tcp.Socket.read--5HJl4c(Socket.kt:75)
at io.github.davidepianca98.ClientSocket.read--5HJl4c(ClientSocket.kt:40)
at io.github.davidepianca98.MQTTClient.check(MQTTClient.kt:389)
at io.github.davidepianca98.MQTTClient.step(MQTTClient.kt:466)
at io.github.davidepianca98.MQTTClient.run(MQTTClient.kt:476)
The text was updated successfully, but these errors were encountered:
Hello, it looks like you are setting the TLSSettings to null and port 8883 which usually is used for TLS connections unless configured differently. Can you please take a look and make sure you are providing the required TLS parameters to connect? You can find a simple example here https://github.com/davidepianca98/KMQTT?tab=readme-ov-file#tls-code-example
I try to connect to a MQTT Broker with username/password authentication but I can't get the MQTTClient to connect.
Calling client.run() throws
Exception in thread "main" io.github.davidepianca98.socket.IOException: Connection reset
at io.github.davidepianca98.socket.tcp.Socket.readToBuffer(Socket.kt:70)
at io.github.davidepianca98.socket.tcp.Socket.read--5HJl4c(Socket.kt:75)
at io.github.davidepianca98.ClientSocket.read--5HJl4c(ClientSocket.kt:40)
at io.github.davidepianca98.MQTTClient.check(MQTTClient.kt:389)
at io.github.davidepianca98.MQTTClient.step(MQTTClient.kt:466)
at io.github.davidepianca98.MQTTClient.run(MQTTClient.kt:476)
The text was updated successfully, but these errors were encountered: