Interact with Microsoft® Azure® IoT Hub using the X-CUBE-AZURE package

If you like it, share it

The X-CUBE-AZURE runs on STM323 and illustrates the various ways for a device to interact with Microsoft® Azure® IoT Hub.
The application shows how a simple client application connects to the Azure® IoT Hub in order to publish device state and telemetry data, and receive device configuration from the cloud.

This SW package are ready to use on the evaluation boards listed below.

The X-CUBE-AZURE Package consists of a set of libraries and application examples for STM32L4 Series, STM32F4 Series, and STM32F7 Series microcontrollers acting as end devices.

There is also the P-L496G-CELL02 pack includes an STM32L496AGI6-based low-power Discovery board equipped with Quectel’s BG96 modem (LTE Cat M1/NB/2G fallback) for cellular connectivity.

For the STM32 platforms, a sample application configures the network connectivity parameters, and illustrates the various ways for a device to interact with Microsoft® Azure® IoT Hub.
The application shows how a simple client application connects to the Azure® IoT Hub in order to publish device state and telemetry data, and receive device configuration from the cloud.

The application handles Azure® messages, methods and twin update commands.
This allows, from the Azure IoT console, the remote control of the user LED state, the change of the telemetry interval, or the trigger of remote firmware update.
It connects to the ST-AZURE-Dashboard for easy sensor data visualization and device control.
It is possible to securely update firmware based on a bootloader derived from the X-CUBE-SBSFU Package.
Device authentication and TLS encryption security features are complemented on the client side by the Secure Boot and Secure Firmware Update features.
The B-L475E-IOT01A board reports telemetry data such as measurement of humidity, temperature, and atmospheric pressure.

Key Features

  • Ready-to-run firmware example using cellular (P-L496G-CELL02 ), Wi-Fi®, and Ethernet connectivity to support quick evaluation and development of Microsoft® Azure® cloud-connected applications
  • Board configuration interface for connection to the Azure® IoT Hub
  • Secure Boot and Secure Firmware Update
  • TLS encryption
  • Azure® IoT Hub, and bidirectional communication examples implemented
  • Azure® X509 device authentication and Azure® Device Provisioning Service (DPS)
  • Connection to an Azure® IoT central demonstration
  • Connection to STMicroelectronics dashboard for Azure®, for easy sensor data visualization and device control
  • Specific features on the B-L475E-IOT01A board such as measurement of humidity, temperature, 3-axis magnetic data, 3-axis acceleration, 3-axis gyroscope data, atmospheric pressure, and time-of-flight