两者之间的区别:Azure 服务客户端和设备客户端

Diffrerence between: Azure service client and device client

我不太清楚服务客户端和设备客户端库。任何人都可以解决我对此的疑问。

问题:当我通过 deviceClient 发送数据时我无法接收数据,但当我使用服务客户端发送数据时相同的代码有效。现在,xamarin 平台不支持 serviceClient 库。

此外,向物联网集线器发送 数据和消息 之间有什么不同吗?或者两者相同。

数据=遥测数据

消息 = 给设备的消息

Also, Is there any different between sending data and message to iot hub. Or both are same.

Service client sends messages to your devices, while device client 将事件数据发送到 Azure IoT 服务。

Issue: I am not able to receive data when i send it through deviceClient but same code works when i send it using service client. Now, serviceClient library is not support on xamarin platform.

那么,在这个问题上,谁接收数据、IoT 设备或基于 IoT Hub 的服务?

有一些官方示例可以参考: