Google Cloud IoT Device SDK for Embedded C API
iotc_connection_data.h
Go to the documentation of this file.
1 /* Copyright 2018-2019 Google LLC
2  *
3  * This is part of the Google Cloud IoT Device SDK for Embedded C,
4  * it is licensed under the BSD 3-Clause license; you may not use this file
5  * except in compliance with the License.
6  *
7  * You may obtain a copy of the License at:
8  * https://opensource.org/licenses/BSD-3-Clause
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef __IOTC_CONNECTION_DATA_H__
18 #define __IOTC_CONNECTION_DATA_H__
19 
20 #include <iotc_mqtt.h>
21 #include "iotc_types.h"
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
33  0,
45 
50 typedef enum iotc_session_type_e {
54 
61 typedef struct {
62  char* host;
63  char* username;
64  char* password;
65  char* client_id;
66  uint16_t port;
69  iotc_connection_state_t connection_state;
70  iotc_session_type_t session_type;
71  char* will_topic; /* UNUSED */
72  char* will_message; /* UNUSED */
73  iotc_mqtt_qos_t will_qos; /* UNUSED */
76 
77 #ifdef __cplusplus
78 }
79 #endif
80 
81 #endif /* __IOTC_CONNECTION_DATA_H__ */
iotc_session_type_t session_type
Connection parameters received by iotc_connect&#39;s callback function.
enum iotc_session_type_e iotc_session_type_t
iotc_connection_state_e
Defines all possible states of the connection process and lifecycle.
enum iotc_mqtt_retain_e iotc_mqtt_retain_t
MQTT unclean session.
enum iotc_mqtt_qos_e iotc_mqtt_qos_t
disconnect operation has been started
iotc_mqtt_retain_t will_retain
iotc_session_type_e
MQTT session types.
connect operation has been finished successfully.
enum iotc_connection_state_e iotc_connection_state_t
MQTT clean session.
the connect operation has been started.
the connection is not established and there is no pending connect operation in libiotc.
iotc_connection_state_t connection_state