Documentation ¶
Index ¶
- func Distribute(topic *string, qos int, retained bool, payload *[]byte) error
- func DistributeObject(topic *string, qos int, retained bool, obj interface{}) error
- func Init(c *Config)
- func New() (MQTT.Client, error)
- func Options() *MQTT.ClientOptions
- func Subscribe(connHandler MQTT.OnConnectHandler, lostHandler MQTT.ConnectionLostHandler) error
- func UnSubscribe(topic string)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DistributeObject ¶
分发Object
func Options ¶
func Options() *MQTT.ClientOptions
func Subscribe ¶
func Subscribe(connHandler MQTT.OnConnectHandler, lostHandler MQTT.ConnectionLostHandler) error
订阅,当事件为nil时可获取client
Types ¶
Click to show internal directories.
Click to hide internal directories.