首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Cumulocity IoT:如何摆脱WAITING_FOR_CONNECTION

Cumulocity IoT:如何摆脱WAITING_FOR_CONNECTION
EN

Stack Overflow用户
提问于 2018-02-19 05:36:32
回答 1查看 507关注 0票数 0

我使用api注册了一个设备,现在我看到了以下内容:

我如何从WAITING_ON_CONNECTION移到另一个状态?

更新

当我做以下事情时:

curl -v -u bob@iotthings.com:iotthings \ -H 'Accept: application/vnd.com.nsn.cumulocity.deviceCredentials+json; charset=UTF-8; ver=0.9' \ -H 'Content-type: application/vnd.com.nsn.cumulocity.deviceCredentials+json; charset=UTF-8; ver=0.9' \ -X POST \ -d '{"id":"0000000017b769d5"}' \ http://iotthingscumulocity.cumulocity.com/devicecontrol/deviceCredentials/

我得到403分..。以下案文如下:

{"error":"security/Forbidden","info":"https://www.cumulocity.com/guides/reference-guide/#error_reporting","message":"Access is denied"}%

我知道我没有任何问题,因为下面的可以很好地工作,并且我在仪表板上得到了设备:

curl -v -u Imran@iotthings.com:iotthings \ -H 'Accept: application/vnd.com.nsn.cumulocity.managedObject+json; charset=UTF-8; ver=0.9' \ -H 'Content-type: application/vnd.com.nsn.cumulocity.managedObject+json; charset=UTF-8; ver=0.9' \ -X POST \ -d '{"c8y_IsDevice":{},"name":"77889"}' \ http://iotthingscumulocity.cumulocity.com/inventory/managedObjects

所以..。有什么我需要做的,以避免得到403错误?我从演示帐户的正常权限开始,并添加了所有其他权限-我仍然得到403。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-02-19 06:42:29

客户端需要使用引导用户查询凭据。一旦发生这种情况,条目就可以被接受,然后如果设备再次查询,它将获得凭据。

http://cumulocity.com/guides/rest/device-integration/#step-0-request-device-credentials

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/48860059

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档