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 
reject, reason: invalid topic ID
will topic update response
will message
publish release (QoS 2)
will topic update response
ping request
topic registration acknowledgment
will topic request
advertise message
will message request
unsubscription acknowledgment
will message update request
unsubscribe message
search gateway message
reject, reason: operation not supported
publish complete (QoS 2)
publish received (QoS 2)
will topic
subscription acknowledgment
reject, reason: congestions
connect message
all good
publish acknowledgment
will topic update request
ping response
topic registration request
subscribe message
gateway info message
disconnect message
publish message
connection acknowledgment message