Azure IOT集线器设备“暂停" [英] Azure IOT Hub Device "Suspension"

查看:81
本文介绍了Azure IOT集线器设备“暂停"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

给出一个具有成千上万个已连接设备的Azure IOT集线器.鉴于设备的某些子集具有软件和硬件问题的某种组合,因此它们将(不良)流量泛滥到IOT Hub.

我们如何挂起"或以其他方式标记一个或多个特定设备,而 没有从设备注册表中删除,因此IOT Hub SDK客户端库(在我们的示例中,请注意,以上图片来自 Azure IoT集线器测试器工具.

Given an Azure IOT Hub with many thousands of connected devices. Given that some subset of the devices have some combination of software and hardware issues such that they are flooding IOT Hub with (bad) traffic.

How do we "suspend" or otherwise mark a specific device or device(s), without removal from the Device Registry, such that the IOT Hub SDK client library (in our case, https://github.com/Azure/azure-iot-sdk-node/tree/master/device) will return an error locally on the device?

The idea would be that we'd want to freeze traffic coming out of the device(s) until we decided to allow it again.

解决方案

The following screen snippet shows an example for disable a device using the REST Api - Put Device:

Note, that the above picture is from the Azure IoT Hub Tester tool.

这篇关于Azure IOT集线器设备“暂停"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆