Azure IoT 中心开发人员指南Azure IoT Hub developer guide
Azure IoT 中心是一项完全托管的服务,有助于在数百万台设备和单个解决方案后端之间实现安全可靠的双向通信。Azure IoT Hub is a fully managed service that helps enable reliable and secure bi-directional communications between millions of devices and a solution back end.
备注
本文中提到的某些功能(例如云到设备消息传递、设备孪生、设备管理)仅在 IoT 中心的标准层中提供。Some of the features mentioned in this article, like cloud-to-device messaging, device twins, and device management, are only available in the standard tier of IoT hub. 有关基本和标准 IoT 中心层的详细信息,请参阅如何选择合适的 IoT 中心层。For more information about the basic and standard IoT Hub tiers, see How to choose the right IoT Hub tier.
Azure IoT 中心提供:Azure IoT Hub provides you with:
- 使用每个设备的安全凭据和访问控制来保护通信安全。Secure communications by using per-device security credentials and access control.
- 多个设备到云和云到设备的超大规模通信选项。Multiple device-to-cloud and cloud-to-device hyper-scale communication options.
- 各设备状态信息和元数据的可查询存储。Queryable storage of per-device state information and meta-data.
- 通过最流行语言和平台的设备库来方便建立设备连接。Easy device connectivity with device libraries for the most popular languages and platforms.
本 IoT 中心开发人员指南包括以下文章:This IoT Hub developer guide includes the following articles:
设备到云通信指南帮助你在设备到云消息、设备孪生的报告属性和文件上传之间进行选择。Device-to-cloud communication guidance helps you choose between device-to-cloud messages, device twin's reported properties, and file upload.
云到设备通信指南帮助你在直接方法、设备孪生的所需属性和云到设备消息之间进行选择。Cloud-to-device communication guidance helps you choose between direct methods, device twin's desired properties, and cloud-to-device messages.
使用 IoT 中心进行设备到云和云到设备的消息传送介绍了 IoT 中心公开的消息传递功能(设备到云和云到设备)。Device-to-cloud and cloud-to-device messaging with IoT Hub describes the messaging features (device-to-cloud and cloud-to-device) that IoT Hub exposes.
从设备上传文件介绍如何从设备上传文件。Upload files from a device describes how you can upload files from a device. 此文章还介绍了上传过程可发送的通知等主题。The article also includes information about topics such as the notifications the upload process can send.
管理 IoT 中心的设备标识介绍每个 IoT 中心的标识注册表存储的信息。Manage device identities in IoT Hubdescribes what information each IoT hub's identity registry stores. 本文还介绍了如何对访问和修改这些信息。The article also describes how you can access and modify it.
控制对 IoT 中心的访问说明用于向设备和云组件授予 IoT 中心功能访问权限的安全模型。Control access to IoT Hub describes the security model used to grant access to IoT Hub functionality for both devices and cloud components. 此文章包括有关使用令牌和 X.509 证书的信息,以及可以授予的权限的详细信息。The article includes information about using tokens and X.509 certificates, and details of the permissions you can grant.
使用设备孪生来同步状态和配置介绍设备孪生概念。Use device twins to synchronize state and configurations describes the device twin concept. 本文还介绍了设备孪生具备的功能,例如使用设备孪生来同步设备。The article also describes the functionality device twins expose, such as synchronizing a device with its device twin. 此文章包括有关设备孪生中存储的数据的信息。The article includes information about the data stored in a device twin.
在设备上调用直接方法介绍直接方法的生命周期。Invoke a direct method on a device describes the lifecycle of a direct method. 本文介绍如何通过后端应用在设备上调用方法,以及如何在设备上处理直接方法。The article describes how to invoke methods on a device from your back-end app and handle the direct method on your device.
在多台设备上计划作业介绍如何在多台设备上计划作业。Schedule jobs on multiple devices describes how you can schedule jobs on multiple devices. 此文章介绍了如何提交作业,这些作业在执行直接方法和利用设备孪生更新设备时执行任务。The article describes how to submit jobs that perform tasks as executing a direct method, updating a device using a device twin. 它还介绍如何查询作业的状态。It also describes how to query the status of a job.
参考 - 选择通信协议介绍了用于设备通信且受 IoT 中心支持的通信协议,并列出了应该打开的端口。Reference - choose a communication protocol describes the communication protocols that IoT Hub supports for device communication and lists the ports that should be open.
参考 - IoT 中心终结点说明了每个 IoT 中心针对运行时和管理操作公开的各种终结点。Reference - IoT Hub endpoints describes the various endpoints that each IoT hub exposes for runtime and management operations. 此文还介绍了如何在 IoT 中心创建附加终结点,以及如何在非标准方案中使用现场网关实现到 IoT 中心终结点的连接。The article also describes how you can create additional endpoints in your IoT hub, and how to use a field gateway to enable connectivity to your IoT Hub endpoints in non-standard scenarios.
参考 - 设备孪生、作业和消息路由的 IoT 中心查询语言介绍了可用于从中心检索设备孪生和作业相关信息的 IoT 中心查询语言。Reference - IoT Hub query language for device twins, jobs, and message routing describes that IoT Hub query language that enables you to retrieve information from your hub about your device twins and jobs.
参考 - 配额和限制总结了 IoT 中心服务中设置的配额,以及当超过配额时会发生的限制。Reference - quotas and throttling summarizes the quotas set in the IoT Hub service and the throttling that occurs when you exceed a quota.
参考 - 定价提供有关 IoT 中心的不同 SKU 和定价的一般信息,以及 IoT 中心如何将各种 IoT 中心功能作为消息计量的详细信息。Reference - pricing provides general information on different SKUs and pricing for IoT Hub and details on how the various IoT Hub functionalities are metered as messages by IoT Hub.
参考 - 设备和服务 SDK 列出了用于开发与 IoT 中心交互的设备和服务应用的 Azure IoT SDK。Reference - Device and service SDKs lists the Azure IoT SDKs for developing device and service apps that interact with your IoT hub. 此文章包括指向联机 API 文档的链接。The article includes links to online API documentation.
参考 - IoT 中心 MQTT 支持详细介绍了 IoT 中心如何支持 MQTT 协议。Reference - IoT Hub MQTT support provides detailed information about how IoT Hub supports the MQTT protocol. 此文章介绍了到 Azure IoT SDK 的 MQTT 协议内置支持,并阐述了如何直接使用 MQTT 协议。The article describes the support for the MQTT protocol built-in to the Azure IoT SDKs and provides information about using the MQTT protocol directly.
词汇表与 IoT 中心相关的常见术语的列表。Glossary a list of common IoT Hub-related terms.