mqttclient

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	MqttClient mqtt.Client
	// contains filtered or unexported fields
}

func New

func New(mqttBroker, clientID string) *Client

func (*Client) ConnectBroker

func (client *Client) ConnectBroker() error

func (*Client) PublishMessage

func (client *Client) PublishMessage(topic string, message []byte, qos uint8, retain bool) error

func (*Client) Subscribe

func (client *Client) Subscribe(topic string, qos byte, callback mqtt.MessageHandler) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL