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
9#pragma once
10
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
28enum {
29 ADVERTISE = 0x00,
30 SEARCHGW = 0x01,
31 GWINFO = 0x02,
32 CONNECT = 0x04,
33 CONNACK = 0x05,
34 WILLTOPICREQ = 0x06,
35 WILLTOPIC = 0x07,
36 WILLMSGREQ = 0x08,
37 WILLMSG = 0x09,
38 REGISTER = 0x0a,
39 REGACK = 0x0b,
40 PUBLISH = 0x0c,
41 PUBACK = 0x0d,
42 PUBCOMP = 0x0e,
43 PUBREC = 0x0f,
44 PUBREL = 0x10,
45 SUBSCRIBE = 0x12,
46 SUBACK = 0x13,
47 UNSUBSCRIBE = 0x14,
48 UNSUBACK = 0x15,
49 PINGREQ = 0x16,
50 PINGRESP = 0x17,
51 DISCONNECT = 0x18,
52 WILLTOPICUPD = 0x1a,
54 WILLMSGUPD = 0x1c,
56};
57
61enum {
62 ACCEPT = 0x00,
63 REJ_CONG = 0x01,
64 REJ_INVTID = 0x02,
65 REJ_NOTSUP = 0x03
66};
67
68#ifdef __cplusplus
69}
70#endif
71
@ 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