B4J Question mqtt client under SSL

anungatri

New Member
Licensed User
Longtime User
I tested jmqtt client example connecting to cloudmqtt.com and everything was fine. Then I tried to use ssl by only changing the port number to the one cloudmqtt.com says is the ssl port and I got "(SocketException) java.net.SocketException: Connection reset".
What else should I change in the code to make an ssl connection?
 

anungatri

New Member
Licensed User
Longtime User
Never mind. I found in the forum that you must also change the scheme from tcp:// to ssl://. Now it works.
Thank you all.

(EDIT): Thank you Erel! We posted at the same time!
 
Upvote 0
Top