base/protocols/mqtt/consts.zeek

MQTT

Constants definitions for MQTT.

Namespace

MQTT

Summary

Constants

MQTT::msg_types: table &default = function

MQTT::qos_levels: table &default = function

MQTT::return_codes: table &default = function

MQTT::versions: table &default = function

Detailed Interface

Constants

MQTT::msg_types
Type

table [count] of string

Attributes

&default = function

Default
{
   [2] = "connack",
   [11] = "unsuback",
   [5] = "pubrec",
   [7] = "pubcomp",
   [6] = "pubrel",
   [10] = "unsubscribe",
   [14] = "disconnect",
   [4] = "puback",
   [13] = "pingresp",
   [12] = "pingreq",
   [8] = "subscribe",
   [3] = "publish",
   [9] = "suback",
   [1] = "connect"
}
MQTT::qos_levels
Type

table [count] of string

Attributes

&default = function

Default
{
   [0] = "at most once",
   [2] = "exactly once",
   [1] = "at least once"
}
MQTT::return_codes
Type

table [count] of string

Attributes

&default = function

Default
{
   [2] = "Refused: identifier rejected",
   [3] = "Refused: server unavailable",
   [5] = "Refused: not authorized",
   [0] = "Connection Accepted",
   [4] = "Refused: bad user name or password",
   [1] = "Refused: unacceptable protocol version"
}
MQTT::versions
Type

table [count] of string

Attributes

&default = function

Default
{
   [4] = "3.1.1",
   [3] = "3.1",
   [5] = "5.0"
}