Definitions common to MQTT client and server. More...
#include "core/net.h"
Go to the source code of this file.
Macros | |
#define | MQTT_PORT 1883 |
#define | MQTT_TLS_PORT 8883 |
#define | MQTT_PROTOCOL_NAME_3_1 "MQIsdp" |
#define | MQTT_PROTOCOL_NAME_3_1_1 "MQTT" |
#define | MQTT_MIN_HEADER_SIZE 2 |
#define | MQTT_MAX_HEADER_SIZE 5 |
Variables | |
typedef | __packed_struct |
Fixed header. More... | |
uint8_t | qos |
uint8_t | dup |
uint8_t | type |
uint8_t | length [] |
MqttPacketHeader | |
uint8_t | data [] |
MqttString | |
Detailed Description
Definitions common to MQTT client and server.
License
SPDX-License-Identifier: GPL-2.0-or-later
Copyright (C) 2010-2024 Oryx Embedded SARL. All rights reserved.
This file is part of CycloneTCP Open.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- Version
- 2.4.4
Definition in file mqtt_common.h.
Macro Definition Documentation
◆ MQTT_MAX_HEADER_SIZE
#define MQTT_MAX_HEADER_SIZE 5 |
Definition at line 50 of file mqtt_common.h.
◆ MQTT_MIN_HEADER_SIZE
#define MQTT_MIN_HEADER_SIZE 2 |
Definition at line 48 of file mqtt_common.h.
◆ MQTT_PORT
#define MQTT_PORT 1883 |
Definition at line 38 of file mqtt_common.h.
◆ MQTT_PROTOCOL_NAME_3_1
#define MQTT_PROTOCOL_NAME_3_1 "MQIsdp" |
Definition at line 43 of file mqtt_common.h.
◆ MQTT_PROTOCOL_NAME_3_1_1
#define MQTT_PROTOCOL_NAME_3_1_1 "MQTT" |
Definition at line 45 of file mqtt_common.h.
◆ MQTT_TLS_PORT
#define MQTT_TLS_PORT 8883 |
Definition at line 40 of file mqtt_common.h.
Enumeration Type Documentation
◆ MqttConnectAckFlags
enum MqttConnectAckFlags |
Connect Acknowledge flags.
Enumerator | |
---|---|
MQTT_CONNECT_ACK_FLAG_SESSION_PRESENT |
Definition at line 139 of file mqtt_common.h.
◆ MqttConnectFlags
enum MqttConnectFlags |
Connect flags.
Definition at line 122 of file mqtt_common.h.
◆ MqttConnectRetCode
enum MqttConnectRetCode |
Connect return codes.
Definition at line 149 of file mqtt_common.h.
◆ MqttPacketType
enum MqttPacketType |
MQTT control packet type.
Definition at line 98 of file mqtt_common.h.
◆ MqttQosLevel
enum MqttQosLevel |
Quality of service level.
Enumerator | |
---|---|
MQTT_QOS_LEVEL_0 | At most once delivery. |
MQTT_QOS_LEVEL_1 | At least once delivery. |
MQTT_QOS_LEVEL_2 | Exactly once delivery. |
Definition at line 86 of file mqtt_common.h.
◆ MqttTransportProtocol
Transport protocol.
Enumerator | |
---|---|
MQTT_TRANSPORT_PROTOCOL_TCP | |
MQTT_TRANSPORT_PROTOCOL_TLS | TCP protocol. |
MQTT_TRANSPORT_PROTOCOL_WS | TLS protocol. |
MQTT_TRANSPORT_PROTOCOL_WSS | WebSocket protocol. |
Definition at line 73 of file mqtt_common.h.
◆ MqttVersion
enum MqttVersion |
MQTT protocol level.
Enumerator | |
---|---|
MQTT_VERSION_3_1 | MQTT version 3.1. |
MQTT_VERSION_3_1_1 | MQTT version 3.1.1. |
Definition at line 62 of file mqtt_common.h.
Variable Documentation
◆ __packed_struct
typedef __packed_struct |
Fixed header.
UTF-8 encoded string.
Definition at line 172 of file mqtt_common.h.
◆ data
uint8_t data[] |
Definition at line 196 of file mqtt_common.h.
◆ dup
uint8_t dup |
Definition at line 182 of file mqtt_common.h.
◆ length
uint8_t length[] |
Definition at line 185 of file mqtt_common.h.
◆ MqttPacketHeader
MqttPacketHeader |
Definition at line 186 of file mqtt_common.h.
◆ MqttString
MqttString |
Definition at line 197 of file mqtt_common.h.
◆ qos
uint8_t qos |
Definition at line 181 of file mqtt_common.h.
◆ type
uint8_t type |
Definition at line 183 of file mqtt_common.h.