Can't connect to cumulocity using trial account

二次信任 提交于 2019-12-24 07:16:13

问题


I've added 2 accounts to MQTTBox, one is a trial account the other is not. With the trial account i fail to connect to cumulocity.

Here's my config:

MQTTBox config

I've also tried setting Username as nur.eu-latest/nuno.rodrigues@together.pt

Why can't i connect with the trial account? Thank you.


回答1:


The prefix in your domain (nur) is not necessarily the ID of your tenant (that depends on the Cumulocity installation and the way your tenant was generated).

MQTT always requires the actual ID of the tenant.

You can for example use postman to check the actual ID of your tenant:

GET /tenant/currentTenant HTTP/1.1
Host: nur.eu-latest-cumulocity.com
Authorization: {{auth}}

The result should look something like this

{
    "allowCreateTenants": false,
    "customProperties": {},
    "domainName": "nur.eu-latest-cumulocity.com",
    "name": "t1234567890",
    "applications": "..."
}

The "name" is what you need to use.



来源:https://stackoverflow.com/questions/54948597/cant-connect-to-cumulocity-using-trial-account

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!