Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PacketType ¶
type PacketType byte
PacketType MQTT control packet type MQTT 12.1.2
const ( RESERVED PacketType = 0 CONNECT PacketType = 1 CONNACK PacketType = 2 PUBLISH PacketType = 3 PUBACK PacketType = 4 PUBREC PacketType = 5 PUBREL PacketType = 6 PUBCOMP PacketType = 7 SUBSCRIBE PacketType = 8 SUBACK PacketType = 9 UNSUBSCRIBE PacketType = 10 UNSUBACK PacketType = 11 PINGREQ PacketType = 12 PINGRESP PacketType = 13 DISCONNECT PacketType = 14 AUTH PacketType = 15 )
MQTT Control packet type
func (PacketType) Text ¶
func (ct PacketType) Text() string
Text returns a text for the MQTT control packet type. Returns the empty string if the control packet type is unknown.
Click to show internal directories.
Click to hide internal directories.