0

我需要一些有关 Python 的 Google IoT Core API 的帮助...

现在,我可以根据需要创建和删除注册表,但我还需要编辑注册表以向其中添加更多主题。

我研究了很多文档但没有运气,也许这里有人有类似的问题或要求?我需要能够将主题添加到具有活动设备的现有注册表中(不能删除和重新创建?)

非常感谢任何帮助

编辑:我找到了这个参考:链接到 API 参考

但我无法正确发出命令:(一个例子可能很有用

4

1 回答 1

0

You may use the google SDK to edit the registry and wrap the Shell command in a python script that format the topics, the proyect name, etc... the shell comand has this sctructure:

gcloud iot devices update {DEVICE_ID}
  --project={PROJECT_ID} 
  --region={REGION} 
  --registry={REGISTRY_ID} 

For more information of the shell comand check the documentation: google registry docs

于 2019-07-30T20:24:58.433 回答