Error when calling Prov_Device_LL_Register_Device function #2885
Labels
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-triage
Workflow: This is a new issue that needs to be triaged to the appropriate team.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
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:-
The text was updated successfully, but these errors were encountered: