Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MQTTBroker ¶
type MQTTBroker struct {
// contains filtered or unexported fields
}
func NewMQTTBroker ¶
func NewMQTTBroker(clientId string, brokerUrl string) *MQTTBroker
func (*MQTTBroker) Connect ¶
func (m *MQTTBroker) Connect() error
func (*MQTTBroker) Disconnect ¶
func (m *MQTTBroker) Disconnect()
func (*MQTTBroker) IsConnected ¶
func (m *MQTTBroker) IsConnected() bool
func (*MQTTBroker) Publish ¶
func (m *MQTTBroker) Publish(topic string, value []byte)
func (*MQTTBroker) Subscribe ¶
func (m *MQTTBroker) Subscribe(event string, f func([]byte))
Click to show internal directories.
Click to hide internal directories.