emcute_internal.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017 Freie Universität Berlin
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
19 #ifndef EMCUTE_INTERNAL_H
20 #define EMCUTE_INTERNAL_H
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
29 enum {
30  ADVERTISE = 0x00,
31  SEARCHGW = 0x01,
32  GWINFO = 0x02,
33  CONNECT = 0x04,
34  CONNACK = 0x05,
35  WILLTOPICREQ = 0x06,
36  WILLTOPIC = 0x07,
37  WILLMSGREQ = 0x08,
38  WILLMSG = 0x09,
39  REGISTER = 0x0a,
40  REGACK = 0x0b,
41  PUBLISH = 0x0c,
42  PUBACK = 0x0d,
43  PUBCOMP = 0x0e,
44  PUBREC = 0x0f,
45  PUBREL = 0x10,
46  SUBSCRIBE = 0x12,
47  SUBACK = 0x13,
48  UNSUBSCRIBE = 0x14,
49  UNSUBACK = 0x15,
50  PINGREQ = 0x16,
51  PINGRESP = 0x17,
52  DISCONNECT = 0x18,
53  WILLTOPICUPD = 0x1a,
54  WILLTOPICRESP = 0x1b,
55  WILLMSGUPD = 0x1c,
56  WILLMSGRESP = 0x1d
57 };
58 
62 enum {
63  ACCEPT = 0x00,
64  REJ_CONG = 0x01,
65  REJ_INVTID = 0x02,
66  REJ_NOTSUP = 0x03
67 };
68 
69 #ifdef __cplusplus
70 }
71 #endif
72 
73 #endif /* EMCUTE_INTERNAL_H */
74 
REJ_NOTSUP
@ REJ_NOTSUP
reject, reason: operation not supported
Definition: emcute_internal.h:66
PUBREC
@ PUBREC
publish complete (QoS 2)
Definition: emcute_internal.h:44
WILLTOPIC
@ WILLTOPIC
will topic
Definition: emcute_internal.h:36
REGACK
@ REGACK
topic registration acknowledgment
Definition: emcute_internal.h:40
WILLTOPICRESP
@ WILLTOPICRESP
will topic update response
Definition: emcute_internal.h:54
PINGRESP
@ PINGRESP
ping response
Definition: emcute_internal.h:51
PUBCOMP
@ PUBCOMP
publish received (QoS 2)
Definition: emcute_internal.h:43
UNSUBACK
@ UNSUBACK
unsubscription acknowledgment
Definition: emcute_internal.h:49
SUBACK
@ SUBACK
subscription acknowledgment
Definition: emcute_internal.h:47
REGISTER
@ REGISTER
topic registration request
Definition: emcute_internal.h:39
SEARCHGW
@ SEARCHGW
search gateway message
Definition: emcute_internal.h:31
REJ_CONG
@ REJ_CONG
reject, reason: congestions
Definition: emcute_internal.h:64
DISCONNECT
@ DISCONNECT
disconnect message
Definition: emcute_internal.h:52
SUBSCRIBE
@ SUBSCRIBE
subscribe message
Definition: emcute_internal.h:46
WILLMSGRESP
@ WILLMSGRESP
will topic update response
Definition: emcute_internal.h:56
CONNACK
@ CONNACK
connection acknowledgment message
Definition: emcute_internal.h:34
ACCEPT
@ ACCEPT
all good
Definition: emcute_internal.h:63
PUBACK
@ PUBACK
publish acknowledgment
Definition: emcute_internal.h:42
WILLTOPICREQ
@ WILLTOPICREQ
will topic request
Definition: emcute_internal.h:35
GWINFO
@ GWINFO
gateway info message
Definition: emcute_internal.h:32
WILLMSG
@ WILLMSG
will message
Definition: emcute_internal.h:38
WILLMSGUPD
@ WILLMSGUPD
will message update request
Definition: emcute_internal.h:55
UNSUBSCRIBE
@ UNSUBSCRIBE
unsubscribe message
Definition: emcute_internal.h:48
ADVERTISE
@ ADVERTISE
advertise message
Definition: emcute_internal.h:30
WILLMSGREQ
@ WILLMSGREQ
will message request
Definition: emcute_internal.h:37
PINGREQ
@ PINGREQ
ping request
Definition: emcute_internal.h:50
WILLTOPICUPD
@ WILLTOPICUPD
will topic update request
Definition: emcute_internal.h:53
PUBLISH
@ PUBLISH
publish message
Definition: emcute_internal.h:41
CONNECT
@ CONNECT
connect message
Definition: emcute_internal.h:33
PUBREL
@ PUBREL
publish release (QoS 2)
Definition: emcute_internal.h:45
REJ_INVTID
@ REJ_INVTID
reject, reason: invalid topic ID
Definition: emcute_internal.h:65