Google Cloud IoT device SDK for embedded C  1.0.2
iotc_connection_data.h File Reference

Go to the source code of this file.

Data Structures

struct  iotc_connection_data_s
 

Typedefs

typedef enum iotc_connection_state_e iotc_connection_state_t
 
typedef enum iotc_session_type_e iotc_session_type_t
 
typedef struct iotc_connection_data_s iotc_connection_data_t
 

Enumerations

enum  iotc_connection_state_e {
  IOTC_CONNECTION_STATE_UNINITIALIZED = 0, 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 }
 

Detailed Description

Defines connection states.

Definition in file iotc_connection_data.h.

Typedef Documentation

◆ iotc_connection_data_t

The MQTT CONNECT parameters.

See also
iotc_connection_data_s

◆ iotc_connection_state_t

Connection process and lifecycle states.

See also
iotc_connection_state_e

◆ iotc_session_type_t

MQTT session types.

See also
iotc_session_type_e

Enumeration Type Documentation

◆ iotc_connection_state_e

Enumerator
IOTC_CONNECTION_STATE_UNINITIALIZED 

The connection is not established and there is no pending connection request.

IOTC_CONNECTION_STATE_OPENING 

The connect operation started.

IOTC_CONNECTION_STATE_OPENED 

The client connected to an MQTT broker.

IOTC_CONNECTION_STATE_CLOSING 

The disconnect operation started.

IOTC_CONNECTION_STATE_CLOSED 

The connection is closed.

IOTC_CONNECTION_STATE_OPEN_FAILED 

Can't open connection.

Definition at line 37 of file iotc_connection_data.h.

◆ iotc_session_type_e

Enumerator
IOTC_SESSION_CLEAN 

MQTT clean session.

IOTC_SESSION_CONTINUE 

MQTT unclean session.

Definition at line 59 of file iotc_connection_data.h.