问题描述
您好,
我们正在开发一个利用IOT集线器调用"直接方法"的自动化项目。在物联网设备上。
We are working on an automation project that utilizes IOT hub to call "Direct methods" on IOT devices.
设备使用MQTT协议连接到IOT集线器,并使用C sdk连续检查"直接方法"调用。为了给你一个更好的想法,Esp8266是IOT设备,它使用Azure IOT sdk通过不断调用'IoTHubClient_LL_DoWork(iotHubClientHandle)'
方法来监听'直接方法'调用。
The devices connect to IOT hub using MQTT protocol and continuously check for 'Direct method' calls using C sdk. To give you a better idea, Esp8266 is the IOT device that uses Azure IOT sdk to listen for 'Direct method' calls by continuously calling 'IoTHubClient_LL_DoWork(iotHubClientHandle)' method.
问题是 - 来自文件 "https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-quotas-throttling" ;,有人提到过"但是,
您可以拥有与已注册设备一样多的同时连接的设备在您的身份注册表中"。 这是否意味着,设备一旦连接将永远保持连接并可以轮询直接方法请求?
The question is- from the document "https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-quotas-throttling", it was mentioned "However, you can have as many simultaneously connected devices as you have devices registered in your identity registry". Does this mean, device once connected will stay connected forever and can poll for Direct method requests?
另外,请告诉我如果有关于测试这种情况的文件。
Also, please let me know if there is a document on testing this scenario.
问候,
Pavan
推荐答案
> 这是否意味着,设备一旦连接将永远保持连接并可以轮询直接方法请求?
> Does this mean, device once connected will stay connected forever and can poll for Direct method requests?
有多种因素可能导致设备断开连接(例如:网络问题,服务器端更新等) - 请参阅Azure
IoT Hub SLA详细信息
here 。
> 另外,
如果有关于测试此场景的文档,请告诉我。
查看此物联网解决方案加速器: 设备
模拟解决方案加速器概述
希望它可以帮助您入门。有关Azure IoT C SDK的技术问题,请利用github回购问题:
Hope it can help you get started. For technical questions related with the Azure IoT C SDK please leverage the github repo issues: https://github.com/Azure/azure-iot-sdk-c/issues
谢谢!
这篇关于限制同时连接到IOT Hub的设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!