How espressif/esp-azure works
This is an ESP32 port of the Azure IoT C SDK, with sample applications for IoT Hub messaging, device twins/direct methods, and device provisioning. The main workflow is to run a sample on an ESP32, connect it to Azure using device credentials, and exchange messages or device-management data; the provisioning sample instead demonstrates DPS enrollment. The graph includes the sampled ESP platform and TLS adapter. Sample-to-cloud links follow the README’s product description and sample names; unsampled SDK internals are represented only as a subsystem.
Main entry points: prov_dev_client_ll_sample.c Provisioning Sample · iothub_client_sample_mqtt.c MQTT Sample · iothub_client_device_twin_and_methods_sample.c Twin And Methods · platform_esp.c ESP Platform
Components 15
Device Samples
- MQTT Sample
examples/iothub_client_sample_mqtt/main/iothub_client_sample_mqtt.c - Twin And Methods
examples/iothub_devicetwin_samples_and_methods/main/iothub_client_device_twin_and_methods_sample.c - Provisioning Sample
examples/prov_dev_client_ll_sample/main/prov_dev_client_ll_sample.c - Custom X.509 HSM
examples/prov_dev_client_ll_sample/main/custom_hsm_x509.c
ESP Platform
- ESP Platform
port/src/platform_esp.c - ESP TLS Adapter
port/src/tlsio_esp_tls.c - TLS Interface
port/inc/tlsio_pal.h - SNTP Time
port/src/agenttime_esp.c - Root Certificates
port/src/certs.c
Azure Services
- Azure IoT C SDK
azure-iot-sdk-c - Azure IoT Hub
- Device Provisioning Service
- Azure CLI
Other components
- Developer
- ESP32 Device
Connections 19
- Developer → MQTT Sample: runs sample
README.md - Developer → Twin And Methods: runs sample
README.md - Developer → Provisioning Sample: runs sample
README.md - MQTT Sample → ESP32 Device: runs on
README.md - Twin And Methods → ESP32 Device: runs on
README.md - Provisioning Sample → ESP32 Device: runs on
README.md - MQTT Sample → Azure IoT C SDK: uses SDK
README.md - Twin And Methods → Azure IoT C SDK: uses SDK
README.md - Provisioning Sample → Azure IoT C SDK: uses SDK
README.md - MQTT Sample → Azure IoT Hub: connects to
README.md - Twin And Methods → Azure IoT Hub: manages device
README.md - Provisioning Sample → Device Provisioning Service: enrolls device
README.md - Provisioning Sample → Custom X.509 HSM: uses
- Azure CLI → Azure IoT Hub: manages device
README.md - Azure CLI → Device Provisioning Service: monitors events
- ESP Platform → ESP TLS Adapter: selects interface
port/src/platform_esp.c - ESP Platform → SNTP Time: initializes time
port/src/platform_esp.c - ESP TLS Adapter → TLS Interface: implements interface
port/src/tlsio_esp_tls.c - ESP Platform → ESP32 Device: runs on
README.md