Cumulocity 物联网:如何从 WAITING_FOR_CONNECTION

Cumulocity IoT: how to move from WAITING_FOR_CONNECTION

我使用 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。

客户端需要使用 bootstrap 用户查询凭据。一旦发生这种情况,就可以接受输入,之后如果设备再次查询,它将获得凭据。

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