Google Cloud IoT device SDK for embedded C
1.0.2
iotc_mqtt.h
Go to the documentation of this file.
1
/* Copyright 2018-2020 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_MQTT_H__
18
#define __IOTC_MQTT_H__
19
20
#ifdef __cplusplus
21
extern
"C"
{
22
#endif
23
36
typedef
enum
iotc_mqtt_retain_e
{
38
IOTC_MQTT_RETAIN_FALSE
= 0,
40
IOTC_MQTT_RETAIN_TRUE
= 1,
41
}
iotc_mqtt_retain_t
;
42
51
typedef
enum
iotc_mqtt_qos_e
{
53
IOTC_MQTT_QOS_AT_MOST_ONCE
= 0,
55
IOTC_MQTT_QOS_AT_LEAST_ONCE
= 1,
57
IOTC_MQTT_QOS_EXACTLY_ONCE
= 2,
58
}
iotc_mqtt_qos_t
;
59
68
typedef
enum
iotc_mqtt_suback_status_e
{
70
IOTC_MQTT_QOS_0_GRANTED
= 0x00,
72
IOTC_MQTT_QOS_1_GRANTED
= 0x01,
74
IOTC_MQTT_QOS_2_GRANTED
= 0x02,
76
IOTC_MQTT_SUBACK_FAILED
= 0x80
77
}
iotc_mqtt_suback_status_t
;
78
85
typedef
enum
iotc_mqtt_dup_e
{
87
IOTC_MQTT_DUP_FALSE
= 0,
89
IOTC_MQTT_DUP_TRUE
= 1,
90
}
iotc_mqtt_dup_t
;
91
92
#ifdef __cplusplus
93
}
94
#endif
95
96
#endif
/* __IOTC_MQTT_H__ */
IOTC_MQTT_DUP_TRUE
1
Definition:
iotc_mqtt.h:89
iotc_mqtt_retain_t
enum iotc_mqtt_retain_e iotc_mqtt_retain_t
The MQTT retain flag.
iotc_mqtt_dup_e
iotc_mqtt_dup_e
Definition:
iotc_mqtt.h:85
iotc_mqtt_qos_t
enum iotc_mqtt_qos_e iotc_mqtt_qos_t
The MQTT Quality of Service levels.
IOTC_MQTT_SUBACK_FAILED
0x80
Definition:
iotc_mqtt.h:76
IOTC_MQTT_QOS_EXACTLY_ONCE
2
Definition:
iotc_mqtt.h:57
IOTC_MQTT_RETAIN_FALSE
0
Definition:
iotc_mqtt.h:38
iotc_mqtt_suback_status_t
enum iotc_mqtt_suback_status_e iotc_mqtt_suback_status_t
The MQTT SUBACK payload.
iotc_mqtt_dup_t
enum iotc_mqtt_dup_e iotc_mqtt_dup_t
The MQTT DUP flag.
IOTC_MQTT_QOS_AT_MOST_ONCE
0
Definition:
iotc_mqtt.h:53
IOTC_MQTT_QOS_2_GRANTED
0x02
Definition:
iotc_mqtt.h:74
IOTC_MQTT_QOS_1_GRANTED
0x01
Definition:
iotc_mqtt.h:72
IOTC_MQTT_DUP_FALSE
0
Definition:
iotc_mqtt.h:87
iotc_mqtt_qos_e
iotc_mqtt_qos_e
Definition:
iotc_mqtt.h:51
IOTC_MQTT_QOS_AT_LEAST_ONCE
1
Definition:
iotc_mqtt.h:55
iotc_mqtt_suback_status_e
iotc_mqtt_suback_status_e
Definition:
iotc_mqtt.h:68
IOTC_MQTT_RETAIN_TRUE
1
Definition:
iotc_mqtt.h:40
iotc_mqtt_retain_e
iotc_mqtt_retain_e
Definition:
iotc_mqtt.h:36
IOTC_MQTT_QOS_0_GRANTED
0x00
Definition:
iotc_mqtt.h:70
include
iotc_mqtt.h
Generated by
1.8.15