Documentation
¶
Index ¶
- Variables
- func Check(sn string) *mqtt.Client
- func InBound(sn string, topic string) bool
- func Init(sn string, server string) *mqtt.Client
- func Pub(sn string, topic string, data string) bool
- func Start(sn string, server string)
- func Stop(sn string) bool
- func Sub(sn string, topic string, callback mqtt.MessageHandler) bool
- func UnSub(sn string, topic string) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var CallBack mqtt.MessageHandler = func(client mqtt.Client, msg mqtt.Message) { fmt.Printf("2 topic: %s\n", msg.Topic()) fmt.Printf("2 msg : %s\n", msg.Payload()) }
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.