cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to connect to MQTT broker in SAP IoT cockpit

Former Member
0 Kudos

Hi All,


I have paho client installed in my laptop and like to send some data via the paho client to check the same in the IoT cockpit.

Scenario : My laptop is connected to wireless internet connection with firewalls turned off.I have created a device under MQTT network in SAP IoT cockpit with the details given below

Ip: 12.16.184.120

Mac address : AR-2C-6D-52-9F-97

label : paho_client_1

Above details are respective to my laptop connections

Then i have downloaded the device certificates.

In paho client i have given the below details

server URI : ssl://<host>:1883

Client ID : AR-2C-6D-52-9F-97

Under options i have given the location of the

keystore location : keystore location

keystore password : pasted the generated password

trust store location :C:\Program Files (x86)\Java\jre1.8.0_144\lib\security/cacerts
trust store passord :any

I am unable to connect from paho client to sap iot cockpit . I am getting the following error

"org.eclipse.paho.client.mqttv3.MqttException: Unable to connect to server"

How to check the same ?

Accepted Solutions (1)

Accepted Solutions (1)

anton_levin
Advisor
Advisor

Hello Deepan, port number should be 8883 and not 1883. Please, check with the tutorial [1]

Regards, Anton

[1] https://help.sap.com/viewer/e765b2a5b99540ce84da397c20cc1993/Cloud/en-US/a81e04d1823d4348b6ea6e99bcd...

Former Member
0 Kudos

Thanks Anton,
Now i am able to connect and publish data but i am unable to see the gauge or data in cockpit.Any idea what might be the problem be and also Is there any where i can check the logs of why it has not displayed?

Datamodel file has more configaddr but i am only publishing only for 1 and 2

{"measureIds" :[1,2],"values":["75",30"],"profileId":990,"logNodeAddr":2}

anton_levin
Advisor
Advisor
0 Kudos

Dear Deepan,

please familiarize yourself with the Community Rules of Engagements [1] and especially with #13 do not hijack - a current question is supposed to be answered. Resolution is - wrong port number used. This leads to #8 - be responsive.

Regards,

Anton (Moderator)

[1] https://www.sap.com/community/about/rules-of-engagement.html

P.S. Regarding your follow-up question, I would suggest opening a customer ticket, providing your instance ID, so that colleagues could have a closer look, analyze and understand what might went wrong.

Former Member
0 Kudos

Thanks , Sorry for the mistake i will contact SAP

Answers (0)