Connect Aws Iot Through Mqtt Using Java

Dear sir,
actually i’m facing error when i connet Aws iot through mqtt using java
error occured
1)mqtt-not connected (status -3 occur)
2)mqtt-Problem configuring SSL/TLS
when i’m using this thread program (Connect your Flexy to AWS IoT through MQTT using JAVA) after 2 sec automatically flexy goes to reboot
otherwise when it cannot reboot value published occur in realtime but value was not publish on AWS .
what was the solution for above explained issue

Thanks & Regards
Pavithra.

Hello @pavithra ,

A status code of 3 is saying it it connecting.

Perhaps something is blocking the flexy from reaching the MQTT broker or your certificates are not setup correctly.