Azure IoT C SDK
prov_device_client.h
Go to the documentation of this file.
1 // Copyright (c) Microsoft. All rights reserved.
2 // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3 
15 #ifndef PROV_DEVICE_CLIENT_H
16 #define PROV_DEVICE_CLIENT_H
17 
18 #ifndef PROV_DEVICE_CLIENT_INSTANCE_TYPE
19 typedef struct PROV_DEVICE_INSTANCE_TAG* PROV_DEVICE_HANDLE;
20 #define PROV_DEVICE_CLIENT_INSTANCE_TYPE
21 #endif // PROV_DEVICE_CLIENT_INSTANCE_TYPE
22 
23 #include <stddef.h>
24 #include <stdint.h>
25 #include "prov_device_ll_client.h"
26 #include "umock_c/umock_c_prod.h"
27 #include "azure_macro_utils/macro_utils.h"
28 #include "azure_c_shared_utility/const_defines.h"
29 #include "azure_prov_client/prov_transport.h"
30 
31 #ifdef __cplusplus
32 extern "C"
33 {
34 #endif
35 
36 static STATIC_VAR_UNUSED const char* const PROV_OPTION_DO_WORK_FREQUENCY_IN_MS = "do_work_freq_ms";
37 
38  PROV_DEVICE_HANDLE Prov_Device_Create( const char* uri, const char* scope_id, PROV_DEVICE_TRANSPORT_PROVIDER_FUNCTION protocol); void Prov_Device_Destroy( PROV_DEVICE_HANDLE prov_device_handle); PROV_DEVICE_RESULT Prov_Device_Register_Device( PROV_DEVICE_HANDLE prov_device_handle, PROV_DEVICE_CLIENT_REGISTER_DEVICE_CALLBACK register_callback, void* user_context, PROV_DEVICE_CLIENT_REGISTER_STATUS_CALLBACK register_status_callback, void* status_user_context); PROV_DEVICE_RESULT Prov_Device_SetOption( PROV_DEVICE_HANDLE prov_device_handle, const char* optionName, const void* value); const char* Prov_Device_GetVersionString();
47  PROV_DEVICE_RESULT Prov_Device_Set_Provisioning_Payload( PROV_DEVICE_HANDLE handle, const char* json);
55  const char* Prov_Device_Get_Provisioning_Payload( PROV_DEVICE_HANDLE handle);
56 #ifdef __cplusplus
57 }
58 #endif /* __cplusplus */
59 
60 #endif // PROV_DEVICE_CLIENT_H
PROV_DEVICE_RESULT Prov_Device_Set_Provisioning_Payload(PROV_DEVICE_HANDLE handle, const char *json)
Sets the Provisioning Data that is sent to the Provisioning service.
const char * Prov_Device_Get_Provisioning_Payload(PROV_DEVICE_HANDLE handle)
Retrieves the Provisioning Data that is sent from the Provisioning service.
Low level provisioning client.