# XDK110 Cumulocity Application: Application fails at MQTTRegistration: requesting credentials

**URL:** <https://community.cumulocity.com/t/xdk110-cumulocity-application-application-fails-at-mqttregistration-requesting-credentials/7225>\
**Category:** Forum\
**Tags:** device-connectivity, cumulocity\
**Created:** [July 19, 2022, 2:07pm UTC](https://community.cumulocity.com/t/xdk110-cumulocity-application-application-fails-at-mqttregistration-requesting-credentials/7225 "2022-07-19T14:07:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![harish.rasiah](https://avatars.discourse-cdn.com/v4/letter/h/8e8cbc/32.png) [@harish.rasiah](https://community.cumulocity.com/u/harish.rasiah)\
**Post date:** [July 19, 2022, 2:07pm UTC](https://community.cumulocity.com/t/xdk110-cumulocity-application-application-fails-at-mqttregistration-requesting-credentials/7225/1 "2022-07-19T14:07:28Z")

</div>

Hello,

I am trying to run the application “cumulocity-xdk-agent” on my XDK110. Everything goes fine until it tries to get MQTT credentials.  
I followed the .readme and can’t find the source of error.  
Does this application still work or am I doing something wrong. I don’t get the errors, that are statet in the .readme.  
I registered the device on my cumuolcity tenant as well with the needed MAC address of my device.

Best regards,  
Harish Rasiah  
Business Developer Manager  
LEGIC Identsystems AG

---

<div class="post-metadata">

**Author:** ![Christof\_Strack](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/christof_strack/32/30066_2.png) [@Christof\_Strack](https://community.cumulocity.com/u/Christof_Strack)\
**Post date:** [July 20, 2022, 6:34am UTC](https://community.cumulocity.com/t/xdk110-cumulocity-application-application-fails-at-mqttregistration-requesting-credentials/7225/2 "2022-07-20T06:34:53Z")

</div>

Hi Harish,

the agent still works if you use it without TLS:

MQTTSECURE=FALSE  
For some reason the TLS communication between the XDK and Cumulocity Endpoint fails.

Regards Christof

P.S. I developed this agent

---

<div class="post-metadata">

**Author:** ![harish.rasiah](https://avatars.discourse-cdn.com/v4/letter/h/8e8cbc/32.png) [@harish.rasiah](https://community.cumulocity.com/u/harish.rasiah)\
**Post date:** [July 20, 2022, 8:07am UTC](https://community.cumulocity.com/t/xdk110-cumulocity-application-application-fails-at-mqttregistration-requesting-credentials/7225/3 "2022-07-20T08:07:16Z")

</div>

![XDK Cumulocity Error](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/original/3X/e/9/e9b6af38e0c59ff79f20d1c2ce5a0bf5c588c188.png)  
Hi Christof,  
Thank you for the quick anwser.  
So i tried to set MQTTSECURE to false (it was on true before) and i get the error msg’s as seen in the picture i uploaded.  
When MQTTSECURE is set to true, i get the initial problem, where the application cant continue at “requesting MQTT credentials…”

There is also a section with “APP\_MQTT\_SECURE\_ENABLE” which is set to 1:

/\*\*

- APP\_MQTT\_SECURE\_ENABLE is a macro to enable MQTT with security  
\*/  
#define APP\_MQTT\_SECURE\_ENABLE 1

Do i have to change this section as well? Sadly I am not a coder, therefore sorry if I am asking a rather fundamental question.

Note: I tried to troubleshoot it as well (the steps with adding XDK nature, clean and rebuild etc.) but nothing worked for me.

Best regards,  
Harish Rasiah

---

<div class="post-metadata">

**Author:** ![Christof\_Strack](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/christof_strack/32/30066_2.png) [@Christof\_Strack](https://community.cumulocity.com/u/Christof_Strack)\
**Post date:** [July 20, 2022, 11:03am UTC](https://community.cumulocity.com/t/xdk110-cumulocity-application-application-fails-at-mqttregistration-requesting-credentials/7225/4 "2022-07-20T11:03:57Z")

</div>

Hi Harish,

it was required to update as the setting:  
`MQTTBROKERNAME= mqtt.eu-latest.cumulocity.com`  
since the test tenant is on another instance.

I documented this in the documentation.

Regards Christof

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/system/32/31990_2.png) [@system](https://community.cumulocity.com/u/system)\
**Post date:** [October 18, 2022, 11:04am UTC](https://community.cumulocity.com/t/xdk110-cumulocity-application-application-fails-at-mqttregistration-requesting-credentials/7225/5 "2022-10-18T11:04:16Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
