我使用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。
发布于 2018-02-19 06:42:29
客户端需要使用引导用户查询凭据。一旦发生这种情况,条目就可以被接受,然后如果设备再次查询,它将获得凭据。
http://cumulocity.com/guides/rest/device-integration/#step-0-request-device-credentials
https://stackoverflow.com/questions/48860059
复制相似问题