Azure-Samples / iot-middleware-freertos-samples

This repo has samples for dev kits using the Azure IoT middleware for FreeRTOS
MIT License
76 stars 46 forks source link

Add recovery in iothub case as well #332

Closed danewalton closed 1 year ago

danewalton commented 1 year ago

Two scenarios tested:

Scenario 1

Original. DPS and Hub both on Baltimore. Device has certs which don't include Baltimore. Failed connection to [OPERATIONAL] DPS, connect to recovery, then get trust bundle, etc. Works ✅.

Scenario 2 (new)

DPS on Baltimore and Hub migrated to Digicert. Device has Baltimore. Device succeeds to [OPERATIONAL] DPS, but fails to [OPERATIONAL] Hub. Fall back to [RECOVERY] DPS to get trust bundle, etc. Then reprovision and connect to [OPERATIONAL] hub. Works ✅.