Documentation ¶
Index ¶
- Variables
- func CheckClientToken(token MQTT.Token) (bool, error)
- func CheckKeyExist(keys []string, disinfo map[string]interface{}) error
- func HubClientInit(server, clientID, username, password string) *MQTT.ClientOptions
- func LoopConnect(clientID string, client MQTT.Client)
- func PathExist(path string) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // TokenWaitTime to wait TokenWaitTime = 120 * time.Second )
Functions ¶
func CheckClientToken ¶
CheckClientToken checks token is right
func CheckKeyExist ¶
CheckKeyExist check dis info format
func HubClientInit ¶
func HubClientInit(server, clientID, username, password string) *MQTT.ClientOptions
HubClientInit create mqtt client config
func LoopConnect ¶
LoopConnect connect to mqtt server
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.