Documentation ¶ Index ¶ type Log func (l Log) Printf(format string, v ...interface{}) func (l Log) Println(v ...interface{}) type MqttConn func Ins(id ...string) *MqttConn func NewMqttConn(broker, username, password string) *MqttConn func (m *MqttConn) Pub(topic string, value string, qos int) error func (m *MqttConn) Sub(topic string, qos int, cb func(value string)) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Log ¶ type Log struct { } func (Log) Printf ¶ func (l Log) Printf(format string, v ...interface{}) func (Log) Println ¶ func (l Log) Println(v ...interface{}) type MqttConn ¶ type MqttConn struct { // contains filtered or unexported fields } func Ins ¶ func Ins(id ...string) *MqttConn func NewMqttConn ¶ func NewMqttConn(broker, username, password string) *MqttConn func (*MqttConn) Pub ¶ func (m *MqttConn) Pub(topic string, value string, qos int) error func (*MqttConn) Sub ¶ func (m *MqttConn) Sub(topic string, qos int, cb func(value string)) error Source Files ¶ View all Source files mqtt.go Click to show internal directories. Click to hide internal directories.