C# azure function 读取 Azure IoT 设备列表异常

问题描述 投票:0回答:0

我正在使用 C# 函数中的 IoT 中心 sql 查询获取 Azure IoT 设备列表。

 var query = _registry.CreateQuery("SELECT deviceId,tags.SiteId FROM devices", 100);

调试时出现以下功能错误

System.Private.CoreLib:执行函数时出现异常:

shared_iot_eventhub_reader_function
。 Microsoft.Azure.Devices:结果类型是 Raw.

相同的查询在 Azure 门户中有效。我需要在查询中进行哪些更改才能获得 Azure IoT 设备列表

我想在我的 Azure IoT 中心获取 Azure IoT 设备列表

c# sql azure-iot-hub azure-iot-sdk
© www.soinside.com 2019 - 2024. All rights reserved.