mqtt

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 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 {
}

func CreateMqttClient

func CreateMqttClient(addr, clientID, username string) *MqttClient

CreateMqttClient 初始化mqtt客户端, addr: 服务端地址和端口, clientID,username 授权的客户端ID和用户名

func (*MqttClient) GetConn

func (e *MqttClient) GetConn() mqtt.Client

GetConn 获取一个mqtt连接

Jump to

Keyboard shortcuts

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