Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MQTT ¶
type MQTT struct { ID string // contains filtered or unexported fields }
func (*MQTT) AddListener ¶
func (m *MQTT) AddListener(l MQTTListener)
func (*MQTT) PublishValue ¶
type MQTTConn ¶
MQTTConn Object
func NewMQTTConn ¶
NewMQTTConn creates a new MQTTConn Object, publishing and subscribing to the given broker/topic
func (*MQTTConn) Subscribe ¶
func (m *MQTTConn) Subscribe(topic string, handler MessageHandler)
type MQTTListener ¶
type MQTTListener interface {
OnValueChange(value string)
}
type MessageHandler ¶
type Subscriber ¶
type Subscriber struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.