gpt4 book ai didi

c# - : Azure service client and device client 之间的区别

转载 作者:行者123 更新时间:2023-12-03 01:08:36 27 4
gpt4 key购买 nike

我对服务客户端和设备客户端库有点困惑。谁能解答我对此的疑问。

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

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

数据 = 遥测数据

消息 = 发送至设备的消息

最佳答案

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

Service client向您的设备发送消息,而 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.

那么,在本期中,谁接收数据、物联网设备或基于物联网中心的服务?

有一些官方示例您可以引用:

关于c# - : Azure service client and device client 之间的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39853388/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com