【发布时间】:2019-03-02 00:46:40
【问题描述】:
我在 MQTTBox 中添加了 2 个帐户,一个是试用帐户,另一个不是。 使用试用帐户,我无法连接到 cumulocity。
这是我的配置:
我也尝试将用户名设置为 nur.eu-latest/nuno.rodrigues@together.pt
为什么我无法连接试用帐户?谢谢。
【问题讨论】:
标签: cumulocity
我在 MQTTBox 中添加了 2 个帐户,一个是试用帐户,另一个不是。 使用试用帐户,我无法连接到 cumulocity。
这是我的配置:
我也尝试将用户名设置为 nur.eu-latest/nuno.rodrigues@together.pt
为什么我无法连接试用帐户?谢谢。
【问题讨论】:
标签: cumulocity
域中的前缀 (nur) 不一定是租户的 ID(这取决于 Cumulocity 安装和生成租户的方式)。
MQTT 始终需要租户的实际 ID。
例如,您可以使用 postman 来检查租户的实际 ID:
GET /tenant/currentTenant HTTP/1.1
Host: nur.eu-latest-cumulocity.com
Authorization: {{auth}}
结果应该是这样的
{
"allowCreateTenants": false,
"customProperties": {},
"domainName": "nur.eu-latest-cumulocity.com",
"name": "t1234567890",
"applications": "..."
}
“名称”是您需要使用的。
【讨论】: