MQTT client is getting un authorize error

Hi,

I signed up in thinger.io cloud instance and created 2 MQTT devices.
I was trying to get familiar with the Platform by publishing some JSON Data with an simple mosquitto publisher via MQTT. But every time I am trying to publish I get the same error message:

Client MqttDevice sending CONNECT
Client MqttDevice received CONNACK (5)
Connection error: Connectin Refused: not authorized.
Client MqttDevice sending DISCONNECT

I’m using the given command from the docs:
mosquitto_pub -d -h backend.thinger.io -p 1883 -i MQTT -u jt -P testCredential -t telemetry -m ‘{25}’
Can you please let me know what may be the issue and why its getting unauthorize error.
I tried the swagger to get devices and other 2-3 APIs which were working fine.
But publish is always has the same error.

Hi,

In the instruction:

You need to replace “MQTT”, “jt” and “testCredential” by the following criteria → “MQTT” is the Client ID (or device id), “jt” is the user account, and “testCredentials” is the device password.

Hope this helps

Hi, Thanks for your reply. I am able to connect now successfully.

1 Like