Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
Client provides a long connection to the MQTT broker, so that you can make continuous requests at the same time.
func NewWithCfg ¶
func NewWithCfg(cc autopaho.ClientConfig) (*Client, error)
NewWithCfg creates a new Client with the given client config.
func NewWithUser ¶ added in v0.1.2
NewWithUser creates a new Client with auth user and password.
type Handler ¶
Handler is the struct providing a request/response functionality for the paho MQTT v5 client.
func NewHandler ¶
func NewHandler(c *autopaho.ConnectionManager, router paho.Router) *Handler
NewHandler registers a response topic and listens for responses for all requests.
Click to show internal directories.
Click to hide internal directories.