Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Listener ¶
type Listener struct { Config *Configuration TopicName string TLSConfig *tls.Config // contains filtered or unexported fields }
func NewListener ¶
func NewListener(config *Configuration) *Listener
func (*Listener) ClientOptions ¶
func (l *Listener) ClientOptions() *mqtt.ClientOptions
func (*Listener) MessageHandler ¶
func (l *Listener) MessageHandler() mqtt.MessageHandler
func (*Listener) PublishExampleMessages ¶
Publish sample messages to the topic at qos 1 and wait for the receipt from the server after sending each message
type TransitionMessage ¶
type TransitionMessage struct { Wtst int64 // Time of waypoint creation Lat float32 // Latitude Long float32 // Longitude Tst int64 // Timestamp of transition Acc uint32 // Accuracy of Lat/Long Tid string // Tracker ID Event string // Enter or Leave Desc string // Description }
func NewTransitionMessage ¶
func NewTransitionMessage(payload []byte) (*TransitionMessage, error)
func (*TransitionMessage) Timestamp ¶
func (tm *TransitionMessage) Timestamp() time.Time
Click to show internal directories.
Click to hide internal directories.