Open MrudulaSatya opened 3 months ago
I wanted to share the error logs from the Azure IoT SDK C when this issue occurs -
[18:48:36.104] Iothub API Version: foobar
[18:48:36.109] Prov_Device_LL_Create success!
Error: Time:Thu Aug 22 18:48:36 2024 File:../../pal/src/tlsio_sl.c Func:tlsio_sl_open Line:371 SlNetSock_startSec failed to start session
Error: Time:Thu Aug 22 18:48:36 2024 File:../../sdk/deps/uhttp/src/uhttp.c Func:uhttp_client_open Line:1125 opening xio failed
Error: Time:Thu Aug 22 18:48:36 2024 File:../../sdk/provisioning_client/src/prov_transport_http_client.c Func:create_connection Line:617 failed to open http client
Error: Time:Thu Aug 22 18:48:36 2024 File:../../sdk/provisioning_client/src/prov_transport_http_client.c Func:prov_transport_http_open Line:763 Failure creating http connection
Error: Time:Thu Aug 22 18:48:36 2024 File:../../sdk/provisioning_client/src/prov_device_ll_client.c Func:Prov_Device_LL_Register_Device Line:1081 Failure establishing connection
[18:48:36.344] failed calling Prov_Device_LL_Register_Device 10
[18:48:36.350] registration failed!`
Hello,
I am using the TI CC3235SF MCU , TI Simplelink SDK V4.10 and Azure IoT SDK Plugin 4.10. The Azure IoT SDK Version is 1.3.8.
I am trying to provision my device to Azure Cloud (Device provisioning service (DPS) and IoTHub). I am using x509 certificate and key pair fro authentication. (.der files. )
The function "Prov_Device_LL_Register_Device()" is giving me an error code 10 (PROV_DEVICE_RESULT_ERROR). On setting breakpoints, I realized that the code is getting stuck at the following line inside the "Prov_Device_LL_Register_Device" function.
if (handle->prov_transport_protocol->prov_transport_x509_cert(handle->transport_handle, x509_cert, x509_private_key) != 0)
I am using Code Composer Studio CCS V12.7.
What could be the possible reason for this error? What things can I check? Do you think something could be missing in the package.bld file of the Azure SDK? Thank you!
Things I tried to do -
The following is the code snippet I am using -
My custom_hsm_tirtos.c file is this:-