17 #ifndef __IOTC_TYPES_H__ 18 #define __IOTC_TYPES_H__ 35 #define IOTC_INVALID_CONTEXT_HANDLE -1 38 #define IOTC_INVALID_TIMED_TASK_HANDLE -1 164 #define IOTC_EMPTY_SUB_CALL_PARAMS \ 165 (iotc_sub_call_params_t) { \ 170 IOTC_MQTT_RETAIN_FALSE, \ 171 IOTC_MQTT_QOS_AT_MOST_ONCE, \ 172 IOTC_MQTT_DUP_FALSE \ Defines state messages and their numeric codes.
struct iotc_crypto_key_union_u::@4 key_custom
enum iotc_mqtt_retain_e iotc_mqtt_retain_t
The MQTT retain flag.
The parameters with which to create JWTs.
iotc_crypto_key_union_type_t crypto_key_union_type
The internal code that represents the data type of the public or private key.
const char * topic
The MQTT topic.
union iotc_sub_call_params_u iotc_sub_call_params_t
The operational data for the user-defined subscription callback.
The operational data for the user-defined subscription callback.
enum iotc_mqtt_qos_e iotc_mqtt_qos_t
The MQTT Quality of Service levels.
void() iotc_user_task_callback_t(const iotc_context_handle_t context_handle, const iotc_timed_task_handle_t timed_task_handle, void *user_data)
A custom callback for timed tasks.
iotc_mqtt_dup_t dup_flag
The MQTT DUP flag.
enum iotc_crypto_key_signature_algorithm_e iotc_crypto_key_signature_algorithm_t
The ES256 algorithm with which to sign JWTs.
iotc_mqtt_retain_t retain
The MQTT retain flag.
iotc_crypto_key_union_t crypto_key_union
The public or private key data.
enum iotc_mqtt_suback_status_e iotc_mqtt_suback_status_t
The MQTT SUBACK payload.
enum iotc_mqtt_dup_e iotc_mqtt_dup_t
The MQTT DUP flag.
The signature algorithm is an ECDSA with P-256 and SHA-256.
union iotc_crypto_key_union_u iotc_crypto_key_union_t
The public or private key data.
The signature algorithm is invalid.
enum iotc_subscription_data_type_e iotc_sub_call_type_t
The data type of the user-defined subscription callback.
const uint8_t * temporary_payload_data
The public or private key data.
iotc_crypto_key_signature_algorithm_e
uint8_t slot_id
A slot ID.
iotc_state_t
The state of the client application.
struct iotc_sub_call_params_u::@0 suback
The MQTT SUBACK packet.
int32_t iotc_context_handle_t
An internal context handle.
The callback is a MESSAGE notification.
iotc_crypto_key_signature_algorithm_t crypto_key_signature_algorithm
The ES256 algorithm with which to sign JWTs.
struct iotc_crypto_key_union_u::@2 key_pem
A PEM-formatted public or private key.
enum iotc_crypto_key_union_type_e iotc_crypto_key_union_type_t
The internal code that represents the data type of the public or private key.
The public or private key data is a null-terminated PEM string.
The callback is a SUBACK notification.
size_t data_size
The size, in bytes, of the untyped data.
void() iotc_user_subscription_callback_t(iotc_context_handle_t in_context_handle, iotc_sub_call_type_t call_type, const iotc_sub_call_params_t *const params, iotc_state_t state, void *user_data)
The subscription callback.
struct iotc_sub_call_params_u::@1 message
The MQTT PUBLISH packet.
iotc_mqtt_qos_t qos
The MQTT Quality of Service levels.
iotc_crypto_key_union_type_e
iotc_mqtt_suback_status_t suback_status
The MQTT SUBACK payload.
void() iotc_user_callback_t(iotc_context_handle_t in_context_handle, void *data, iotc_state_t state)
int32_t iotc_timed_task_handle_t
The handle to identify timed tasks.
size_t temporary_payload_data_length
The length, in bytes, of the MQTT PUBLISH payload.
void * data
The data in the format that the BSP determined.
iotc_subscription_data_type_e
struct iotc_crypto_key_union_u::@3 key_slot
The slot IDs of secure elements.
char * key
The text of the public or private key.