Reminds me of Anybody able to successfully compile Azure SDK ESP32-dev with Arduino in PlatformIO 5.
Specifically, depending on the Azure instance you’re connecting to, you may need to activate a different certificate (azure-iot-arduino/certs.c at master · Azure/azure-iot-arduino · GitHub) through the build_flags
of the platformio.ini
(like, -DUSE_BALTIMORE_CERT
or -DUSE_MICROSOFTAZURE_DE_CERT
).
Is the project you’re using this? IoT-For-Beginners/2-farm/lessons/4-migrate-your-plant-to-the-cloud/code/wio-terminal/soil-moisture-sensor at main · microsoft/IoT-For-Beginners · GitHub
Against which Azure server + port are you connecting against?
Increase the debug level to maximum. What’s the full log?