Google Cloud IoT Device SDK for Embedded C API
include
iotc_mqtt.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_MQTT_H__
18
#define __IOTC_MQTT_H__
19
20
#ifdef __cplusplus
21
extern
"C"
{
22
#endif
23
31
typedef
enum
iotc_mqtt_retain_e
{
32
IOTC_MQTT_RETAIN_FALSE
= 0,
33
IOTC_MQTT_RETAIN_TRUE
= 1,
34
}
iotc_mqtt_retain_t
;
35
43
typedef
enum
iotc_mqtt_qos_e
{
44
IOTC_MQTT_QOS_AT_MOST_ONCE
= 0,
45
IOTC_MQTT_QOS_AT_LEAST_ONCE
= 1,
46
IOTC_MQTT_QOS_EXACTLY_ONCE
= 2,
47
}
iotc_mqtt_qos_t
;
48
56
typedef
enum
iotc_mqtt_suback_status_e
{
57
IOTC_MQTT_QOS_0_GRANTED
= 0x00,
58
IOTC_MQTT_QOS_1_GRANTED
= 0x01,
59
IOTC_MQTT_QOS_2_GRANTED
= 0x02,
60
IOTC_MQTT_SUBACK_FAILED
= 0x80
61
}
iotc_mqtt_suback_status_t
;
62
70
typedef
enum
iotc_mqtt_dup_e
{
71
IOTC_MQTT_DUP_FALSE
= 0,
72
IOTC_MQTT_DUP_TRUE
= 1,
73
}
iotc_mqtt_dup_t
;
74
75
#ifdef __cplusplus
76
}
77
#endif
78
79
#endif
/* __IOTC_MQTT_H__ */
IOTC_MQTT_DUP_TRUE
Definition:
iotc_mqtt.h:72
iotc_mqtt_dup_e
iotc_mqtt_dup_e
Definition:
iotc_mqtt.h:70
IOTC_MQTT_SUBACK_FAILED
Definition:
iotc_mqtt.h:60
iotc_mqtt_dup_t
enum iotc_mqtt_dup_e iotc_mqtt_dup_t
IOTC_MQTT_QOS_EXACTLY_ONCE
Definition:
iotc_mqtt.h:46
IOTC_MQTT_RETAIN_FALSE
Definition:
iotc_mqtt.h:32
IOTC_MQTT_QOS_AT_MOST_ONCE
Definition:
iotc_mqtt.h:44
iotc_mqtt_retain_t
enum iotc_mqtt_retain_e iotc_mqtt_retain_t
IOTC_MQTT_QOS_2_GRANTED
Definition:
iotc_mqtt.h:59
iotc_mqtt_suback_status_t
enum iotc_mqtt_suback_status_e iotc_mqtt_suback_status_t
IOTC_MQTT_QOS_1_GRANTED
Definition:
iotc_mqtt.h:58
IOTC_MQTT_DUP_FALSE
Definition:
iotc_mqtt.h:71
iotc_mqtt_qos_t
enum iotc_mqtt_qos_e iotc_mqtt_qos_t
iotc_mqtt_qos_e
iotc_mqtt_qos_e
Definition:
iotc_mqtt.h:43
IOTC_MQTT_QOS_AT_LEAST_ONCE
Definition:
iotc_mqtt.h:45
iotc_mqtt_suback_status_e
iotc_mqtt_suback_status_e
Definition:
iotc_mqtt.h:56
IOTC_MQTT_RETAIN_TRUE
Definition:
iotc_mqtt.h:33
iotc_mqtt_retain_e
iotc_mqtt_retain_e
Definition:
iotc_mqtt.h:31
IOTC_MQTT_QOS_0_GRANTED
Definition:
iotc_mqtt.h:57
Generated by
1.8.13