How do one connect to MQTT broker.losant.com using piece of JAVA code. I have been trying to connect using java mqtt paho client as
MqttClient sampleClient = new MqttClient(broker, clientId);
where broker = ssl://broker.losant.com:8883 and clientID is the actual deviceId.
I get an exception with connection time out.
What am I doing wrong? Can some one post a code snippet to correctly connect in JAVA