Loading...
Searching...
No Matches
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
23extern "C" {
24#endif
25
29enum {
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,
55 WILLMSGUPD = 0x1c,
56 WILLMSGRESP = 0x1d
57};
58
62enum {
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 */
@ REJ_INVTID
reject, reason: invalid topic ID
@ REJ_CONG
reject, reason: congestions
@ ACCEPT
all good
@ REJ_NOTSUP
reject, reason: operation not supported
@ WILLTOPICRESP
will topic update response
@ ADVERTISE
advertise message
@ PINGRESP
ping response
@ PUBREC
publish complete (QoS 2)
@ CONNECT
connect message
@ DISCONNECT
disconnect message
@ WILLTOPICUPD
will topic update request
@ WILLMSGRESP
will topic update response
@ WILLMSGUPD
will message update request
@ REGACK
topic registration acknowledgment
@ UNSUBACK
unsubscription acknowledgment
@ WILLMSGREQ
will message request
@ UNSUBSCRIBE
unsubscribe message
@ PINGREQ
ping request
@ CONNACK
connection acknowledgment message
@ SEARCHGW
search gateway message
@ WILLMSG
will message
@ WILLTOPICREQ
will topic request
@ SUBSCRIBE
subscribe message
@ PUBLISH
publish message
@ SUBACK
subscription acknowledgment
@ PUBCOMP
publish received (QoS 2)
@ REGISTER
topic registration request
@ PUBREL
publish release (QoS 2)
@ GWINFO
gateway info message
@ WILLTOPIC
will topic
@ PUBACK
publish acknowledgment