使用 Azure IoT C SDK 将 Azure IoT 中心与 GSM 调制解调器连接起来

Connect the azure IoT hub with a GSM modem using Azure IoT C SDK

我想将嵌入式系统连接到 Azure IoT 中心。该系统由一个STM32微控制器、一些传感器和一个具有以下功能的调制解调器组成:

我想通过使用 Azure IoT Client C SDK.

来扩展我的代码库
  1. 是否可以将此库与提到的调制解调器一起使用?
  2. 如果是,有人可以概述集成的必要步骤吗?

1) 是否可以将此库与提到的调制解调器一起使用?

从所提供的详细信息来看,我看不出有什么理由不可行。

2) 如果是,有人可以概述集成的必要步骤吗?

This github repository 有一些关于如何将电路板与 STM32 微控制器连接的示例。

另请注意from here

The minimum requirements are for the device platform to support the following:

  • Being capable of establishing an IP connection: only IP-capable devices can communicate directly with Azure IoT Hub.
  • Support TLS: required to establish a secure communication channel with Azure IoT Hub.
  • Support SHA-256 (optional): necessary to generate the secure token for authenticating the device with the service. Different authentication methods are available and not all require SHA-256.
  • Have a Real Time Clock or implement code to connect to an NTP server: necessary for both establishing the TLS connection and generating the secure token for authentication.
  • Having at least 64KB of RAM: the memory footprint of the SDK depends on the SDK and protocol used as well as the platform targeted. The smallest footprint is achieved targeting microcontrollers.

...

If you are considering porting the device client SDK for C to a new platform, check out the porting guide document.

STM 已将 C SDK 集成到他们的 Cube 中,以便与 Azure 进行简单连接。请查看此 table 以找到适合您的 STM 微控制器的 link。

如果您使用的微控制器不受支持,您可以随时按照 porting guidance.

将我们的 SDK 移植到任何平台