base/protocols/mqtt/consts.zeek

MQTT

Constants definitions for MQTT.

Namespace:MQTT

Detailed Interface

Constants

MQTT::msg_types
Type:

table [count] of string

Attributes:

&default = function

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

table [count] of string

Attributes:

&default = function

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

table [count] of string

Attributes:

&default = function

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

table [count] of string

Attributes:

&default = function

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