Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func New ¶
func New(config *MqttConfig) (*Connection, error)
func (*Connection) InsertGenericRecord ¶
func (conn *Connection) InsertGenericRecord(topicName string, measurement map[string]interface{}) error
func (*Connection) InsertRecord ¶
func (conn *Connection) InsertRecord(measurement map[string]interface{}) error
func (*Connection) Subscribe ¶
func (conn *Connection) Subscribe(topic string, callback mqtt.MessageHandler)
Click to show internal directories.
Click to hide internal directories.