Verstehen und Verwenden von Azure IoT Hub SDKsUnderstand and use Azure IoT Hub SDKs
Es gibt zwei Kategorien von Software Development Kits (SDKs) für die Arbeit mit IoT Hub:There are two categories of software development kits (SDKs) for working with IoT Hub:
IoT Hub-Geräte-SDKs ermöglichen das Erstellen von Apps, die auf Ihren IoT-Geräten ausgeführt werden, mit dem Geräteclient oder dem Modulclient.IoT Hub Device SDKs enable you to build apps that run on your IoT devices using device client or module client. Mit diesen Apps werden Telemetriedaten an die IoT Hub-Instanz gesendet und optional Nachrichten oder Updates für Aufträge, Methoden oder Gerätezwillingen von der IoT Hub-Instanz empfangen.These apps send telemetry to your IoT hub, and optionally receive messages, job, method, or twin updates from your IoT hub. Sie können mit dem Modulclient auch Module für Azure IoT Edge-Runtime erstellen.You can also use module client to author modules for Azure IoT Edge runtime.
Mit IoT Hub-Dienst-SDKs können Sie Back-End-Anwendungen zum Verwalten Ihrer IoT-Hub-Instanz erstellen und optional Nachrichten senden, Aufträge planen, direkte Methoden aufrufen oder gewünschte Eigenschaftsupdates an Ihre IoT-Geräte oder -Module senden.IoT Hub Service SDKs enable you to build backend applications to manage your IoT hub, and optionally send messages, schedule jobs, invoke direct methods, or send desired property updates to your IoT devices or modules.
Darüber hinaus bieten wir auch ein Spektrum an SDKs zum Arbeiten mit dem Device Provisioning Service.In addition, we also provide a set of SDKs for working with the Device Provisioning Service.
Mit Gerätebereitstellungs-SDKs können Sie auf Ihren IoT-Geräten ausgeführte Apps für die Kommunikation mit dem Device Provisioning Service erstellen.Provisioning Device SDKs enable you to build apps that run on your IoT devices to communicate with the Device Provisioning Service.
Mit Dienstbereitstellungs-SDKs können Sie Back-End-Anwendungen zum Verwalten Ihrer Registrierungen im Device Provisioning Service erstellen.Provisioning Service SDKs enable you to build backend applications to manage your enrollments in the Device Provisioning Service.
Erfahren Sie mehr über die Vorteile beim Entwickeln mit Azure IoT SDKs.Learn about the benefits of developing using Azure IoT SDKs.
Hinweis
Einige der in diesem Artikel erwähnten Features (wie Cloud-zu-Gerät-Messaging, Gerätezwillinge und Geräteverwaltung) stehen nur im Standard-Tarif von IoT Hub zur Verfügung.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. Weitere Informationen zu den IoT Hub-Tarifen „Basic“ und „Standard“ finden Sie unter Wählen des passenden IoT Hub-Tarifs für Ihre Lösung.For more information about the basic and standard IoT Hub tiers, see How to choose the right IoT Hub tier.
Betriebssystemplattformen und HardwarekompatibilitätOS platform and hardware compatibility
Unterstützte Plattformen für die SDKs sind in Azure IoT-SDKs – Plattformunterstützung aufgeführt.Supported platforms for the SDKs can be found in Azure IoT SDKs Platform Support.
Weitere Informationen zur Kompatibilität von SDKs mit bestimmten Hardwaregeräten finden Sie im Azure Certified for IoT-Gerätekatalog oder im jeweiligen Repository.For more information about SDK compatibility with specific hardware devices, see the Azure Certified for IoT device catalog or individual repository.
Azure IoT Hub-Geräte-SDKsAzure IoT Hub Device SDKs
Die Microsoft Azure IoT-Geräte-SDKs enthalten Code, der das Erstellen von Anwendungen erleichtert, die eine Verbindung mit Azure IoT Hub-Diensten herstellen und von ihnen verwaltet werden.The Microsoft Azure IoT device SDKs contain code that facilitates building applications that connect to and are managed by Azure IoT Hub services.
Azure IoT Hub Device SDK für .NET:Azure IoT Hub device SDK for .NET:
- Download über NuGet.Download from NuGet. Der Namespace ist Microsoft.Azure.Devices.Clients, worin IoT Hub-Geräteclients (DeviceClient, ModuleClient) enthalten sind.The namespace is Microsoft.Azure.Devices.Clients, which contains IoT Hub Device Clients (DeviceClient, ModuleClient).
- QuellcodeSource code
- API-ReferenzAPI reference
- ModulreferenzModule reference
Azure IoT Hub-Geräte-SDK für Embedded C (ANSI C – C99):Azure IoT Hub device SDK for Embedded C (ANSI C - C99):
- Erstellen des Embedded C SDKBuild the Embedded C SDK
- QuellcodeSource code
- Größendiagramm für eingeschränkte Geräte.Size chart for constrained devices.
- API-ReferenzAPI reference
Azure IoT Hub-Geräte-SDK für C (ANSI C – C99):Azure IoT Hub device SDK for C (ANSI C - C99):
- Installation über apt-get, MBED, Arduino-IDE oder iOSInstall from apt-get, MBED, Arduino IDE or iOS
- QuellcodeSource code
- Kompilieren des C-Geräte-SDKCompile the C Device SDK
- API-ReferenzAPI reference
- ModulreferenzModule reference
- Portieren des C-SDK für andere PlattformenPorting the C SDK to other platforms
- Entwicklerdokumentation für Informationen zu Cross-Kompilierung, erste Schritte auf verschiedenen Plattformen etc.Developer documentation for information on cross-compiling, getting started on different platforms, etc.
- Informationen zum Ressourcenverbrauch beim Azure IoT Hub C SDKAzure IoT Hub C SDK resource consumption information
Azure IoT Hub Device SDK für Java:Azure IoT Hub device SDK for Java:
- Hinzufügen zum Maven-ProjektAdd to Maven project
- QuellcodeSource code
- API-ReferenzAPI reference
- ModulreferenzModule reference
Azure IoT Hub Device SDK für Node.js:Azure IoT Hub device SDK for Node.js:
- Installation über npmInstall from npm
- QuellcodeSource code
- API-ReferenzAPI reference
- ModulreferenzModule reference
Azure IoT Hub Device SDK für Python:Azure IoT Hub device SDK for Python:
- Installation über pipInstall from pip
- QuellcodeSource code
- API-ReferenzAPI reference
Azure IoT Hub Device SDK für iOS:Azure IoT Hub device SDK for iOS:
- Installation über CocoaPodInstall from CocoaPod
- BeispieleSamples
- API-Referenz: siehe C-API-ReferenzAPI reference: see C API reference
Azure IoT Hub-Dienst-SDKsAzure IoT Hub Service SDKs
Die Azure IoT-Dienst-SDKs enthalten Code zum Erstellen von Anwendungen, die direkt mit IoT Hub interagieren, um Geräte und Sicherheit zu verwalten.The Azure IoT service SDKs contain code to facilitate building applications that interact directly with IoT Hub to manage devices and security.
Azure IoT Hub Service SDK für .NET:Azure IoT Hub service SDK for .NET:
- Download über NuGet.Download from NuGet. Der Namespace ist Microsoft.Azure.Devices, worin IoT Hub-Dienstclients (RegistryManager, ServiceClients) enthalten sind.The namespace is Microsoft.Azure.Devices, which contains IoT Hub Service Clients (RegistryManager, ServiceClients).
- QuellcodeSource code
- API-ReferenzAPI reference
Azure IoT Hub Service SDK für Java:Azure IoT Hub service SDK for Java:
- Hinzufügen zum Maven-ProjektAdd to Maven project
- QuellcodeSource code
- API-ReferenzAPI reference
Azure IoT Hub Service SDK für Node.js:Azure IoT Hub service SDK for Node.js:
- Download über npmDownload from npm
- QuellcodeSource code
- API-ReferenzAPI reference
Azure IoT Hub Service SDK für Python:Azure IoT Hub service SDK for Python:
- Download über pipDownload from pip
- QuellcodeSource code
- API-ReferenzAPI reference
Azure IoT Hub Service SDK für C:Azure IoT Hub service SDK for C:
Das Azure IoT-Dienst-SDK für C befindet sich nicht mehr in der aktiven Entwicklung.The Azure IoT Service SDK for C is no longer under active development. Wir werden weiterhin wichtige Fehler wie z. B. Abstürze, Datenbeschädigungen und Sicherheitsrisiken beheben.We will continue to fix critical bugs such as crashes, data corruption, and security vulnerabilities. Es werden jedoch KEINE neuen Features hinzugefügt oder Fehler behoben, die nicht von Bedeutung sind.We will NOT add any new feature or fix bugs that are not critical, however.
Die Unterstützung des Azure IoT-Dienst-SDK ist in den Sprachen der höheren Ebene (C#, Java, Node und Python) verfügbar.Azure IoT Service SDK support is available in higher-level languages (C#, Java, Node, Python).
- Download über apt-get, MBED, Arduino-IDE oder NuGetDownload from apt-get, MBED, Arduino IDE, or NuGet
- QuellcodeSource code
Azure IoT Hub Service SDK für iOS:Azure IoT Hub service SDK for iOS:
- Installation über CocoaPodInstall from CocoaPod
- BeispieleSamples
Hinweis
In den „Readme“-Dateien in den GitHub-Repositorys finden Sie Informationen zum Verwenden sprach- und plattformspezifischer Paket-Manager zum Installieren von Binärdateien und Abhängigkeiten auf Ihrem Entwicklungscomputer.See the readme files in the GitHub repositories for information about using language and platform-specific package managers to install binaries and dependencies on your development machine.
Microsoft Azure-Bereitstellungs-SDKsMicrosoft Azure Provisioning SDKs
Mit Microsoft Azure-Bereitstellungs-SDKs können Sie Geräte in IoT Hub mit dem Device Provisioning Service bereitstellen.The Microsoft Azure Provisioning SDKs enable you to provision devices to your IoT Hub using the Device Provisioning Service.
Geräte- und Dienst-SDKs für die Azure Bereitstellung für C#:Azure Provisioning device and service SDKs for C#:
- Laden Sie Geräte-SDK und Dienst-SDK von NuGet herunter.Download from Device SDK and Service SDK from NuGet.
- QuellcodeSource code
- API-ReferenzAPI reference
Geräte- und Dienst-SDKs für die Azure Bereitstellung für C:Azure Provisioning device and service SDKs for C:
- Installation über apt-get, MBED, Arduino-IDE oder iOSInstall from apt-get, MBED, Arduino IDE or iOS
- QuellcodeSource code
- API-ReferenzAPI reference
Geräte- und Dienst-SDKs für die Azure Bereitstellung für Java:Azure Provisioning device and service SDKs for Java:
- Hinzufügen zum Maven-ProjektAdd to Maven project
- QuellcodeSource code
- API-ReferenzAPI reference
Geräte- und Dienst-SDKs für die Azure Bereitstellung für Node.js:Azure Provisioning device and service SDKs for Node.js:
- QuellcodeSource code
- API-ReferenzAPI reference
- Laden Sie Geräte-SDK und Dienst-SDK von npm herunter.Download Device SDK and Service SDK from npm
Geräte- und Dienst-SDKs für die Azure Bereitstellung für Python:Azure Provisioning device and service SDKs for Python:
- QuellcodeSource code
- Laden Sie Geräte-SDK und Dienst-SDK von pip herunter.Download Device SDK and Service SDK from pip
Nächste SchritteNext steps
Azure IoT SDKs stellen ebenso Tools für die Entwicklung bereit:Azure IoT SDKs also provide a set of tools to help with development:
- iothub-diagnostics: ein plattformübergeifendes Befehlszeilentool zum Diagnostizieren von Problemen, die im Zusammenhang mit der Verbindung mit IoT Hub stehen.iothub-diagnostics: a cross-platform command line tool to help diagnose issues related to connection with IoT Hub.
- azure-iot-explorer: eine plattformübergreifende Desktopanwendung zum Herstellen einer Verbindung mit Ihrem IoT Hub sowie zum Hinzufügen und Verwalten von und Kommunizieren mit IoT-Geräten.azure-iot-explorer: a cross-platform desktop application to connect to your IoT Hub and add/manage/communicate with IoT devices.
Relevante Dokumentation, die im Zusammenhang mit der Entwicklung mithilfe der Azure-IoT-SDKs steht:Relevant docs related to development using the Azure IoT SDKs:
- Informieren Sie sich über das Verwalten von Konnektivität und zuverlässigem Messaging mithilfe von IoT Hub-SDKs.Learn about how to manage connectivity and reliable messaging using the IoT Hub SDKs.
- Informieren Sie sich über das Entwickeln für mobile Plattformen wie etwa iOS und Android.Learn about how to develop for mobile platforms such as iOS and Android.
- Azure IoT SDK – PlattformunterstützungAzure IoT SDK platform support
Weitere Referenzthemen in diesem IoT Hub-Entwicklungsleitfaden:Other reference topics in this IoT Hub developer guide include:
- IoT Hub-EndpunkteIoT Hub endpoints
- IoT Hub-Abfragesprache für Gerätezwillinge, Aufträge und NachrichtenroutingIoT Hub query language for device twins, jobs, and message routing
- Kontingente und DrosselungQuotas and throttling
- IoT Hub-MQTT-UnterstützungIoT Hub MQTT support
- REST-API-Referenz zu IoT HubIoT Hub REST API reference