c1_mqttSub

package
v0.0.0-...-63b2ac5 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Overview

--------------------------------------------------

File Name: Main.go
Author: hanxu
AuthorSite: http://www.thesunboy.com/
GitSource: https://github.com/googx/linuxShell
Created Time: 2019-6-20-上午10:12

---------------------说明--------------------------

mqtt client

---------------------------------------------------

Index

Constants

This section is empty.

Variables

View Source
var (
	XSubBootargs = new(SubBootArgs)
)

Functions

func SubMain

func SubMain()

启动的时候向mqtt服务器,创建一个订阅信息,并准备在这个消息通道中发送消息,设备状态上报, 并监听一个订阅消息,等待服务器信息派送.

Types

type SubBootArgs

type SubBootArgs struct {
	MqttHostAddr string
	MqttHostPort int
	MqttTopic    string
}

func (SubBootArgs) ExecFunc

func (SubBootArgs) ExecFunc() func()

func (SubBootArgs) FlagDefine

func (SubBootArgs) FlagDefine() func(xflag *flag.FlagSet)

Jump to

Keyboard shortcuts

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