Skip to content

STMicroelectronics/Azure-cloud-samples

Repository files navigation

Azure-Cloud-Samples

This repository includes code samples to connect selected STM32 microcontroller development kits to Azure IoT Plug-and-Play.

The code has been adapted from original Microsoft samples, which can be downloaded here.

Microsoft original code runs on STM32L4+ based B-L4S5I-IOT01A development kit; it uses Azure RTOS and it implements the emulated temperature controller IoT Plug-and-Play example, based on Microsoft Azure IoT embedded SDK for C.

The code available in this repo implements the following changes:

  • reads real sensor values (temperature, humidity, acceleration, gyroscope, distance, pressure)
  • implements IoT Plug-and-Play DTDL device templates published in the official Azure repository
  • runs on STM32L4+ based B-L4S5I-IOT01A and STEVAL-STWINKT1B boards
  • runs on STM32U5 based B-U585I-IOT02A board
  • can take device connection settings from UART and saves them in flash, for easier provisioning

IoT Plug-and-Play Device Templates

Device templates use DTDLv2 and include two components: the standard Azure device info and STMicroelectronics standard interface, which demonstrates the usage of sensors.

Telemetry

Depending on the development kit model, different sensor values are sampled periodically and sent to the Azure IoT hub that has been configured; the sampling and transmission period is a writeable property.

Properties

Published templates enable changing the accelerometer and gyroscope full scale values by selecting from a list of sensor specific available values; moreover the telemetry sending interval can be modified as well.

Commands

Publihed code does not implement any cloud to device commands.

Licenses

Microsoft and STMicroelectronics are the owners of respective code, for licensing terms, please refer to the files present in the root directory of the repository.

Support

For support about this software, customers can follow this link. Online Support (st.com)

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published