1#ifndef Provision_Callback_h
2#define Provision_Callback_h
176 char const *m_device_key = {};
177 char const *m_device_secret = {};
178 char const *m_device_name = {};
179 char const *m_access_token = {};
180 char const *m_cred_username = {};
181 char const *m_cred_password = {};
182 char const *m_cred_client_id = {};
183 char const *m_hash = {};
184 char const *m_credentials_type = {};
General purpose safe callback wrapper. Expects either c-style or c++ style function pointer,...
Definition: Callback.h:30
std::function< void(argument_types... arguments)> function
Callback signature.
Definition: Callback.h:34
Provisioning callback wrapper.
Definition: Provision_Callback.h:28
char const * Get_Credentials_Type() const
Gets the string containing the used credentials type that decides which provisioning method is actual...
Definition: Provision_Callback.cpp:136
char const * Get_Credentials_Client_ID() const
Gets the basic MQTT credentials client ID, that will be used by the provisioned device.
Definition: Provision_Callback.cpp:120
Timeoutable_Request & Get_Request_Timeout()
Gets the request timeout callback.
Definition: Provision_Callback.cpp:140
void Set_Credentials_Username(char const *username)
Sets the basic MQTT credentials username, that will be used by the provisioned device.
Definition: Provision_Callback.cpp:108
char const * Get_Credentials_Username() const
Gets the basic MQTT credentials username, that will be used by the provisioned device.
Definition: Provision_Callback.cpp:104
char const * Get_Certificate_Hash() const
Gets the public X.509 certificate hash, that will be used by the provisioned device.
Definition: Provision_Callback.cpp:128
void Set_Device_Key(char const *provision_device_key)
Sets the provisioning key of the Device Profile, that should be used to create the device under.
Definition: Provision_Callback.cpp:76
char const * Get_Device_Name() const
Gets the name the created device should have on the cloud.
Definition: Provision_Callback.cpp:88
char const * Get_Credentials_Password() const
Gets the basic MQTT credentials password, that will be used by the provisioned device.
Definition: Provision_Callback.cpp:112
void Set_Credentials_Client_ID(char const *client_id)
Sets the basic MQTT credentials client ID, that will be used by the provisioned device.
Definition: Provision_Callback.cpp:124
void Set_Device_Access_Token(char const *access_token)
Sets the access token generated by the device, that will be used by the provisioned device.
Definition: Provision_Callback.cpp:100
void Set_Device_Secret(char const *provision_device_secret)
Sets the provisioning secret of the Device Profile that should be used to create the device under.
Definition: Provision_Callback.cpp:84
~Provision_Callback() override=default
char const * Get_Device_Access_Token() const
Gets the access token generated by the device, that will be used by the provisioned device.
Definition: Provision_Callback.cpp:96
void Set_Certificate_Hash(char const *hash)
Sets the public X.509 certificate hash, that will be used by the provisioned device.
Definition: Provision_Callback.cpp:132
char const * Get_Device_Secret() const
Gets the provisioning secret of the Device Profile that should be used to create the device under.
Definition: Provision_Callback.cpp:80
Provision_Callback()=default
Constructs empty callback, will result in never being called. Internals are simply default constructe...
void Set_Device_Name(char const *device_name)
Sets the name the created device should have on the cloud, pass nullptr or an empty string if a rando...
Definition: Provision_Callback.cpp:92
void Set_Credentials_Password(char const *password)
Sets the basic MQTT credentials password, that will be used by the provisioned device.
Definition: Provision_Callback.cpp:116
char const * Get_Device_Key() const
Gets the provisioning key of the Device Profile, that should be used to create the device under.
Definition: Provision_Callback.cpp:72
General purpose request callback that can timeout if the response to the request is not received in t...
Definition: Timeoutable_Request.h:10
Struct dispatch tag used to differentiate between the differnt possible provisioning strategies and t...
Definition: Provision_Callback.h:10
Struct dispatch tag used to differentiate between the differnt possible provisioning strategies and t...
Definition: Provision_Callback.h:18
Struct dispatch tag used to differentiate between the differnt possible provisioning strategies and t...
Definition: Provision_Callback.h:14
Struct dispatch tag used to differentiate between the differnt possible provisioning strategies and t...
Definition: Provision_Callback.h:22