如何与设备客户端一起使用最后的意志和遗嘱?
我正在使用官方Azure IoT SDK的DeviceClient来连接客户的IoT Hub。配置的原始纸是MQTT。现在,我有一个新的要求,以实施最后的意志和证明(LWT)消息。我知道此MQTT功能以及它如何与本机MQTT客户端一起使用。但是如何将其与偏差式使用?还是我需要切换到本机MQTT客户端(这会导致很多返工)?
I'm using the DeviceClient from the official Azure IoT SDK to connect to an IoT Hub from a customer. The configured protocoll is MQTT. Now I got a new requirement to implement a last will and testamant (LWT) message. I know this MQTT feature and how it would work with a native MQTT client. But how can I use this with the DeviceClient? Or do I need to switch to a native MQTT client (which would cause a lot of rework)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我终于找到了如何做到这一点:
重要的是要设置Haswill属性,而不仅仅是Willmessage!
I finally found out how to do this:
It is important to set also the HasWill property and not only the WillMessage!