util

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// TokenWaitTime to wait
	TokenWaitTime = 120 * time.Second
)

Functions

func CheckClientToken

func CheckClientToken(token MQTT.Token) (bool, error)

CheckClientToken checks token is right

func CheckKeyExist

func CheckKeyExist(keys []string, disinfo map[string]interface{}) error

CheckKeyExist check dis info format

func HubClientInit

func HubClientInit(server, clientID, username, password string) *MQTT.ClientOptions

HubClientInit create mqtt client config

func LoopConnect

func LoopConnect(clientID string, client MQTT.Client)

LoopConnect connect to mqtt server

func PathExist

func PathExist(path string) bool

PathExist check file exists or not

Types

This section is empty.

Jump to

Keyboard shortcuts

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