MCUXpresso SDK API Reference Manual  Rev. 0
NXP Semiconductors
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Macros to define MQTT fixed header size.

Overview

Each MQTT message starts with a fixed header. The first byte contains the message type and related flags. The next 1-4 bytes contain the length of the packet excluding the length of fixed header (namely "Remaining Length"). "Remaining Length" field can span up to 4 bytes, so the maximum length of MQTT fixed header can be 5 bytes and minimum length can be 2 bytes.

Macros

#define mqttREMAINING_LENGTH_MAX_BYTES   4
 
#define mqttREMAINING_LENGTH_MIN_BYTES   1
 

Macro Definition Documentation

#define mqttREMAINING_LENGTH_MAX_BYTES   4

Remaining Length field can span maximum 4 bytes.

#define mqttREMAINING_LENGTH_MIN_BYTES   1

Remaining Length field must be of at least 1 byte.