Loading...
Searching...
No Matches
emcute_internal.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2017 Freie Universität Berlin
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
25enum {
26 ADVERTISE = 0x00,
27 SEARCHGW = 0x01,
28 GWINFO = 0x02,
29 CONNECT = 0x04,
30 CONNACK = 0x05,
31 WILLTOPICREQ = 0x06,
32 WILLTOPIC = 0x07,
33 WILLMSGREQ = 0x08,
34 WILLMSG = 0x09,
35 REGISTER = 0x0a,
36 REGACK = 0x0b,
37 PUBLISH = 0x0c,
38 PUBACK = 0x0d,
39 PUBCOMP = 0x0e,
40 PUBREC = 0x0f,
41 PUBREL = 0x10,
42 SUBSCRIBE = 0x12,
43 SUBACK = 0x13,
44 UNSUBSCRIBE = 0x14,
45 UNSUBACK = 0x15,
46 PINGREQ = 0x16,
47 PINGRESP = 0x17,
48 DISCONNECT = 0x18,
49 WILLTOPICUPD = 0x1a,
51 WILLMSGUPD = 0x1c,
53};
54
58enum {
59 ACCEPT = 0x00,
60 REJ_CONG = 0x01,
61 REJ_INVTID = 0x02,
62 REJ_NOTSUP = 0x03
63};
64
65#ifdef __cplusplus
66}
67#endif
68
@ 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