package
1.5.0
Repository: https://github.com/eclipse/paho.mqtt.golang.git
Documentation: pkg.go.dev

# Functions

NewControlPacket is used to create a new ControlPacket of the type specified by packetType, this is usually done by reference to the packet type constants defined in packets.go.
NewControlPacketWithHeader is used to create a new ControlPacket of the type specified within the FixedHeader that is passed to the function.
ReadPacket takes an instance of an io.Reader (such as net.Conn) and attempts to read an MQTT packet from the stream.

# Constants

Below are the const definitions for error codes returned by Connect().
Below are the constants assigned to each of the MQTT packet types.
Below are the constants assigned to each of the MQTT packet types.
Below are the constants assigned to each of the MQTT packet types.
Below are the const definitions for error codes returned by Connect().
Below are the const definitions for error codes returned by Connect().
Below are the const definitions for error codes returned by Connect().
Below are the const definitions for error codes returned by Connect().
Below are the const definitions for error codes returned by Connect().
Below are the const definitions for error codes returned by Connect().
Below are the const definitions for error codes returned by Connect().
Below are the constants assigned to each of the MQTT packet types.
Below are the constants assigned to each of the MQTT packet types.
Below are the constants assigned to each of the MQTT packet types.
Below are the constants assigned to each of the MQTT packet types.
Below are the constants assigned to each of the MQTT packet types.
Below are the constants assigned to each of the MQTT packet types.
Below are the constants assigned to each of the MQTT packet types.
Below are the constants assigned to each of the MQTT packet types.
Below are the constants assigned to each of the MQTT packet types.
Below are the constants assigned to each of the MQTT packet types.
Below are the constants assigned to each of the MQTT packet types.

# Variables

ConnackReturnCodes is a map of the error codes constants for Connect() to a string representation of the error.
ConnErrors is a map of the errors codes constants for Connect() to a Go error.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PacketNames maps the constants for each of the MQTT packet types to a string representation of their name.

# Structs

ConnackPacket is an internal representation of the fields of the Connack MQTT packet.
ConnectPacket is an internal representation of the fields of the Connect MQTT packet.
Details struct returned by the Details() function called on ControlPackets to present details of the Qos and MessageID of the ControlPacket.
DisconnectPacket is an internal representation of the fields of the Disconnect MQTT packet.
FixedHeader is a struct to hold the decoded information from the fixed header of an MQTT ControlPacket.
PingreqPacket is an internal representation of the fields of the Pingreq MQTT packet.
PingrespPacket is an internal representation of the fields of the Pingresp MQTT packet.
PubackPacket is an internal representation of the fields of the Puback MQTT packet.
PubcompPacket is an internal representation of the fields of the Pubcomp MQTT packet.
PublishPacket is an internal representation of the fields of the Publish MQTT packet.
PubrecPacket is an internal representation of the fields of the Pubrec MQTT packet.
PubrelPacket is an internal representation of the fields of the Pubrel MQTT packet.
SubackPacket is an internal representation of the fields of the Suback MQTT packet.
SubscribePacket is an internal representation of the fields of the Subscribe MQTT packet.
UnsubackPacket is an internal representation of the fields of the Unsuback MQTT packet.
UnsubscribePacket is an internal representation of the fields of the Unsubscribe MQTT packet.

# Interfaces

ControlPacket defines the interface for structs intended to hold decoded MQTT packets, either from being read or before being written.