30 #define MCL_LOG_UTIL_LEVEL_VERBOSE 1 31 #define MCL_LOG_UTIL_LEVEL_DEBUG 2 32 #define MCL_LOG_UTIL_LEVEL_INFO 3 33 #define MCL_LOG_UTIL_LEVEL_WARN 4 34 #define MCL_LOG_UTIL_LEVEL_ERROR 5 35 #define MCL_LOG_UTIL_LEVEL_FATAL 6 36 #define MCL_LOG_UTIL_LEVEL_NONE 0xFF 53 #define MCL_FALSE ((mcl_bool_t)0) 54 #define MCL_TRUE ((mcl_bool_t)1) 59 #define MCL_MAXIMUM_HTTP_PAYLOAD_SIZE (10485760) 256 const char *registration_uri);
289 const char *registration_uri);
332 #endif //MCL_COMMON_H_ Mindsphere hostname is used for connection as configuration type.
Proxy type is used for connection as configuration type.
The system does not support file handling.
E_MCL_SOURCE_TYPE
Source type values for mcl entities.
Agent is not onboarded to the server yet and does not possess an authentication key.
Source type is application.
E_MCL_ERROR_CODE(* mcl_save_shared_secret_callback_t)(const char *client_id, const char *client_secret, const char *registration_access_token, const char *registration_uri)
Callback function prototype to save registration information for Shared Secret security profile...
E_MCL_PROXY
Proxy type definitions. Used inside of mcl_configuration_t.
E_MCL_SECURITY_PROFILE
Definitions of different security profiles for onboarding.
The server certificate provided is in improper format and it can not be parsed.
Severity level of event is WARNING.
MindSphere proxy password given as a configuration parameter is either NULL or of inappropriate size...
If a particular operation is not supported.
A problem occured when sending data to the network.
If provided index is greater than collection size.
Server proof received with the server nonce mismatch.
Severity level of event is ERROR.
If the response of server is HTTP 403.
Given log level is invalid.
Domain is used for connection as configuration type.
Host name given as a configuration parameter is either NULL or of inappropriate size.
E_MCL_EVENT_OPTION
Optional parameters for event.
MCL failed to connect to the host or proxy.
Occurs when same item is tried to be added to a collection of unique items.
Event severity level is invalid.
E_MCL_ERROR_CODE
MCL Error code definitions. Every function returning an error code uses this enum values...
E_MCL_CONFIGURATION_TYPE
Configuration types used in connection to the mindsphere.
Proxy user name is used for connection as configuration type.
Part of the data in store is written to the http request. There is still data left needs to be writte...
Max HTTP payload size for every HTTP request given as configuration parameter is inappropriate size...
Proxy port is used for connection as configuration type.
Configuration setup module interface header file.
Severity level of event is INFORMATION.
Security profile given as a configuration parameter is invalid. Please check the security profile opt...
The store trying to be exchanged has no data inside.
Neither initial access token - initial registration URI pair nor the store path with registration inf...
No access token exists in mcl_communication_t handle.
E_MCL_ERROR_CODE(* mcl_load_shared_secret_callback_t)(char **client_id, char **client_secret, char **registration_access_token, char **registration_uri)
Callback function prototype to load registration information for Shared Secret security profile...
If given content for Base64 encoding is bad.
void(* mcl_leave_critical_section_callback_t)(void)
Callback function prototype to leave critical section (onboarding, key rotation, updating security in...
There is no more space left in http message buffer. No data has been written in current call...
If the response of server is unexpected.
General invalid parameter fail.
There is no element in the array.
If agent cannot enter critical section.
E_MCL_ERROR_CODE(* mcl_save_rsa_callback_t)(const char *client_id, const char *public_key, const char *private_key, const char *registration_access_token, const char *registration_uri)
Callback function prototype to save registration information for RSA security profile.
E_MCL_ERROR_CODE(* mcl_load_rsa_callback_t)(char **client_id, char **public_key, char **private_key, char **registration_access_token, char **registration_uri)
Callback function prototype to load registration information for RSA security profile.
If the response of server is HTTP 206.
Unexpected endpoint type is received by the function to create a URI.
Security profile is used for connection as configuration type.
User-Agent for every HTTP request given as configuration parameter is either NULL or longer than 32 c...
Adding final closing boundary and Authentication header is failed.
If the response of server is HTTP 413.
Proxy host name given as a configuration parameter could not be resolved.
Mindsphere certificate was not verified.
MindSphere proxy user name given as a configuration parameter is either NULL or of inappropriate size...
If the response of server is HTTP 400.
Initialization of MCL fails.
Proxy hostname is used for connection as configuration type.
If the response of server is HTTP 409.
MindSphere proxy domain given as a configuration parameter is either NULL or of inappropriate size...
If the response of server is HTTP 404.
MindSphere certificate given as a configuration parameter is either NULL or of inappropriate size...
The system does not have a storage medium.
If the response of server is HTTP 201.
No more space is left to add an additional object.
Json child which we try to get doesn't exist in the parent Json object.
Registration information is not loaded.
File provided in store path parameter in configuration structure is not accessible.
Host name given as a configuration parameter could not be resolved.
MCL is not initialized, mcl_communication_initialize() function must be called first.
Midsphere certificate is used for connection as configuration type.
A problem occured during SSL/TLS handshake.
The same name can not be added in the same level of json object.
Registration information is not saved.
Mindsphere port is used for connection as configuration type.
The server did not respond within a timeout period.
The streaming is active and shouldn't be interrupted.
Agent is already onboarded to the server, hence the library did not try to onboard again...
Server time is not received from the server.
Store which is not streamable has an item that does not fit in a single http request.
E_MCL_EVENT_SEVERITY
Severity values for events.
A problem occured when receiving data from the network.
Password is used for connection as configuration type.
Security information of the mcl_communication is already up to date.
MindSphere proxy host name given as a configuration parameter is either NULL or of inappropriate size...
If the response of server is HTTP 429.
E_MCL_ERROR_CODE(* mcl_enter_critical_section_callback_t)(void)
Callback function prototype to enter critical section (onboarding, key rotation, updating security in...
Indicates that a provided buffer does not have enough size for the operation.
If SHA256 calculation fails.
If the response of server is HTTP 401.
Received parameter is null.
If the response of server is HTTP 412.