Connection lost while connect to broker

Hello,

I am trying to connect to broker with “broker.hivemq.com” but the device while connecting time it is showing

+CMQTTCONNECT: 0,6

+CMQTTCONNLOST: 0,1

it is connecting and immediately lost connection.
previously it is working but today after 3:30 pm it is showing like that.

But sometimes it is connecting some time not.

Hey Pankaj,

welcome to the HiveMQ Community! Can you please share some more details on what you are using to attempt connecting to broker.hivemq.com? Is it a self written client? If so, which library are you using?

For general quick functionality tests I can highly recommend our MQTT CLI. Establishing a quick roundtrip message test by subscribing to a topic in one console and publishing in another is a great way to verify if your device and connection generally have connectivity to a broker.

Kind regards,
Finn