Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MqttWrapperClient ¶
type MqttWrapperClient struct {
// contains filtered or unexported fields
}
func InitMqtt ¶
func InitMqtt(c *MqttConf) (*MqttWrapperClient, error)
func (*MqttWrapperClient) Close ¶
func (m *MqttWrapperClient) Close()
func (*MqttWrapperClient) Publish ¶
func (m *MqttWrapperClient) Publish(topic string, payload []byte) error
func (*MqttWrapperClient) Subscribe ¶
func (m *MqttWrapperClient) Subscribe(ctx context.Context, topic string, h mqtt.MessageHandler) (err error)
Click to show internal directories.
Click to hide internal directories.