
当我调用 Prov_Device_LL_Register_Device ()函数时、返回错误代码10 = PROV_DEVICE_RESULT_ERROR。 无法理解这意味着什么以及应该检查什么。
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);
我们将感谢您的任何帮助。