Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MqttX ¶
func Create ¶
func Create(conf Conf, defaultPublishHandler MsgHandler, onConnectHandler OnConnectHandler, onConnectionLostHandler OnConnectionLostHandler, ) (*MqttX, error)
func QuickCreate ¶
func (*MqttX) Disconnect ¶
func (*MqttX) Subscribe ¶
func (mx *MqttX) Subscribe(msg MqtMsg, callback MsgHandler)
func (*MqttX) Unsubscribe ¶
type MsgHandler ¶
type MsgHandler func(MqtMsg)
type OnConnectHandler ¶
type OnConnectHandler func()
type OnConnectionLostHandler ¶
type OnConnectionLostHandler func(error)
Click to show internal directories.
Click to hide internal directories.