# Azure_MQTT_STM32L562E-DK_ESP8266_WiFi_RTX **Repository Path**: mirrors_ARMmbed/Azure_MQTT_STM32L562E-DK_ESP8266_WiFi_RTX ## Basic Information - **Project Name**: Azure_MQTT_STM32L562E-DK_ESP8266_WiFi_RTX - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2025-09-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README Azure MQTT Demo =============== This demo application connects to [Azure IoT Hub](https://docs.microsoft.com/en-us/azure/iot-hub/) through MQTT, sends messages and checks for receive confirmation. It requires a registered [device](https://www2.keil.com/iot/microsoft) in the Azure IoT hub. The following describes the various components and the configuration settings. Once the application is configured you can: - Build the application - Connect the debugger - Run the application and view messages in a debug printf or terminal window Azure IoT Client ---------------- The file `iothub_ll_telemetry_sample_mdk.c` configures the connection to Azure IoT Hub with these settings: - connectionString: Connection string - primary key Note: These settings need to be configured by the user! RTX5 Real-Time Operating System ------------------------------- The [RTX5 RTOS](https://arm-software.github.io/CMSIS_5/RTOS2/html/rtx5_impl.html) implements the resource management. It is configured with the following settings: - Global Dynamic Memory size: 24000 bytes - Default Thread Stack size: 3072 bytes WiFi IoT Socket --------------- This implementation uses an IoT socket layer that connects to a [CMSIS-Driver WiFi](https://arm-software.github.io/CMSIS_5/Driver/html/index.html). The file `socket_startup.c` configures the WiFi connection with these settings: - SSID: network identifier - PASSWORD: network password - SECURITY_TYPE: network security Note: These settings need to be configured by the user! ESP8266 WiFi Module ------------------- The [ESP8266 WiFi Module](https://www2.keil.com/iot/shields/wrl13287) is connected via an Arduino connector using a USART interface. It exposes a **CMSIS-Driver WiFi**. STMicroelectronics STM32L562E-DK Target Board --------------------------------------------- The Board layer contains the following configured interface drivers: **CMSIS-Driver USART1** routed to Virtual COM port (ST-LINK): - RX: ST-LINK-UART1_RX (PA10) - TX: ST-LINK-UART1_TX (PA9) **CMSIS-Driver USART6** routed to Arduino UNO R3 connector (CN12): - RX: D0 LPUART1_RX (PB10) - TX: D1 LPUART1_TX (PB11) **CMSIS-Driver SPI3** routed to Arduino UNO R3 connector (CN11): - SCK: D13 SPI3_SCK (PG9) - MISO: D12 SPI3_MISO (PB4) - MOSI: D11 SPI3_MOSI (PB5) **GPIO** pins routed to Arduino UNO R3 connector (CN11): - output: D10 SPI_CSn (PE0) - input: D9 TIM4_CH4 (PB9) **CMSIS-Driver VIO** with the following board hardware mapping: - vioBUTTON0: Button USER (PC13) - vioLED0: LD9 RED (PD3) - vioLED1: LD9 GREEN (PG12) - vioMotionGyro: iNEMO 3D gyroscopee (LSM6DSO) - vioMotionAccelero: iNEMO 3D accelerometer (LSM6DSO) **STDIO** routed to Virtual COM port (ST-LINK, baudrate = 115200) The board configuration can be modified using [STM32CubeMX](https://www.keil.com/pack/doc/STM32Cube/html/index.html) and is stored in the file `STCubeGenerated.ioc`.