client

package module
v0.0.0-...-79861f0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MqttClient

type MqttClient struct {
	// contains filtered or unexported fields
}

func NewMqttClient

func NewMqttClient() *MqttClient

func (*MqttClient) Connect

func (mc *MqttClient) Connect(idClient string, options *MqttConnectOptions) (bool, error)

func (*MqttClient) Read

func (mp *MqttClient) Read() ([]byte, error)

func (*MqttClient) SetConn

func (mc *MqttClient) SetConn(conn *net.Conn)

func (*MqttClient) ShowPacket

func (mp *MqttClient) ShowPacket(buffer []byte) string

type MqttConnectOptions

type MqttConnectOptions struct {
	Login    string
	Password string
}

Jump to

Keyboard shortcuts

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