Azure IoT SDK - C (Running on TI CC3235SF gateway)
Y MRUDULA
41
Reputation points
When I call Prov_Device_LL_Register_Device() function is returning error code 10 = PROV_DEVICE_RESULT_ERROR. Unable to understand what it means and what should be checked.
CLIENT_SAMPLE_INFO user_ctx;
memset(&user_ctx, 0, sizeof(CLIENT_SAMPLE_INFO));
g_prov_transport = Prov_Device_HTTP_Protocol;
// Set ini
user_ctx.registration_complete = 0;
user_ctx.sleep_time = 10;
PROV_DEVICE_LL_HANDLE handle;
if ((handle = Prov_Device_LL_Create(global_prov_uri, id_scope, g_prov_transport)) == NULL)
{
UART_PRINT("failed calling Prov_Device_LL_Create\r\n");
}
else
{
UART_PRINT("Prov_Device_LL_Create success!\r\n");
Prov_Device_LL_SetOption(handle, "logtrace", &g_trace_on);
PROV_DEVICE_RESULT x = Prov_Device_LL_Register_Device(handle, register_device_callback, &user_ctx, registation_status_callback, &user_ctx);
Any help will be appreciated.
Sign in to answer