Google Cloud IoT Device SDK for Embedded C API
Data Structures | Typedefs | Enumerations
iotc_connection_data.h File Reference
#include <iotc_mqtt.h>
#include "iotc_types.h"

Go to the source code of this file.

Data Structures

struct  iotc_connection_data_t
 

Typedefs

typedef enum iotc_connection_state_e iotc_connection_state_t
 
typedef enum iotc_session_type_e iotc_session_type_t
 

Enumerations

enum  iotc_connection_state_e {
  IOTC_CONNECTION_STATE_UNINITIALIZED, IOTC_CONNECTION_STATE_OPENING, IOTC_CONNECTION_STATE_OPENED, IOTC_CONNECTION_STATE_CLOSING,
  IOTC_CONNECTION_STATE_CLOSED, IOTC_CONNECTION_STATE_OPEN_FAILED
}
 
enum  iotc_session_type_e { IOTC_SESSION_CLEAN, IOTC_SESSION_CONTINUE }
 

Typedef Documentation

◆ iotc_connection_state_t

◆ iotc_session_type_t

Enumeration Type Documentation

◆ iotc_connection_state_e

Defines all possible states of the connection process and lifecycle.

Enumerator
IOTC_CONNECTION_STATE_UNINITIALIZED 
IOTC_CONNECTION_STATE_OPENING 

the connection is not established and there is no pending connect operation in libiotc.

IOTC_CONNECTION_STATE_OPENED 

the connect operation has been started.

IOTC_CONNECTION_STATE_CLOSING 

connect operation has been finished successfully.

IOTC_CONNECTION_STATE_CLOSED 

disconnect operation has been started

IOTC_CONNECTION_STATE_OPEN_FAILED 

connection is closed

there was an error during connect operation

Definition at line 31 of file iotc_connection_data.h.

◆ iotc_session_type_e

MQTT session types.

Note that CONTINUE isn't currently supported.

Enumerator
IOTC_SESSION_CLEAN 

MQTT clean session.

IOTC_SESSION_CONTINUE 

MQTT unclean session.

Definition at line 50 of file iotc_connection_data.h.