Azure IOT PnP Digital Twin API/SDK用于检索设备/Twin的属性、命令和遥测定义
我目前正在学习Azure IOT即插即用和数字孪生兄弟 我正在运行以下设备示例:Azure\IOT即插即用\Azure IOT示例csharp\IOT hub\samples\Device\PnpDeviceSamples\恒温器 以及相应的服务示例:Azure\IOT即插即用\Azure IOT samples csharp\IOT hub\samples\Service\PnPServicesSamples\Automator 要与恒温器交互,请执行以下操作: 我想通过基于twin ID的API/SDK发现设备/twin可以使用哪些属性、遥测和命令,但是我注意到Microsoft.Azure.Devices.device和Microsoft.Azure.Devices.Shared.twin类只包含属性信息,不定义命令或遥测Azure IOT PnP Digital Twin API/SDK用于检索设备/Twin的属性、命令和遥测定义,azure,azure-iot-hub,azure-iot-sdk,Azure,Azure Iot Hub,Azure Iot Sdk,我目前正在学习Azure IOT即插即用和数字孪生兄弟 我正在运行以下设备示例:Azure\IOT即插即用\Azure IOT示例csharp\IOT hub\samples\Device\PnpDeviceSamples\恒温器 以及相应的服务示例:Azure\IOT即插即用\Azure IOT samples csharp\IOT hub\samples\Service\PnPServicesSamples\Automator 要与恒温器交互,请执行以下操作: 我想通过基于twin ID的A
Microsoft.Azure.Devices.RegistryManager registryManager = _registryManager;
Microsoft.Azure.Devices.Device device = await registryManager.GetDeviceAsync(_digitalTwinId);
Microsoft.Azure.Devices.Shared.Twin twin = await _registryManager.GetTwinAsync(_digitalTwinId);
有人能告诉我如何获取命令和遥测定义吗?要在应用程序中动态发现设备模型的所有详细信息,请执行以下操作: