Get all devices from IoT Azure Hub

萝らか妹 提交于 2021-01-28 04:20:23

问题


I would like to obtain all devices into my Azure IoT Hub system (connected, not connected, it doesn't matter).

I've read the documentation about the system itself with no result but Get a list of devices from Azure IoT Hub has become obsolete.

Is there any kind of query which let retrieve all devices associated to my system?


回答1:


You can use the REST API Service - Query Iot Hub

Payload:

{
  "query": "SELECT deviceId FROM devices"
}


来源:https://stackoverflow.com/questions/56965855/get-all-devices-from-iot-azure-hub

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!