Documentation ¶
Index ¶
Constants ¶
const ParamAccuracy string = "acc"
ParamAccuracy is the key for the parameter "accuracy"
const ParamAltitude string = "alt"
ParamAltitude is the key for the parameter "altitude"
const ParamLatitude string = "lat"
ParamLatitude is the key for the parameter "latitude"
const ParamLongitude string = "lon"
ParamLongitude is the key for the parameter "longitude"
const ParamTime string = "tst"
ParamTime is the key for the parameter "time"
const ParamTrigger string = "t"
ParamTrigger is the key for the parameter "trigger"
const ParamType string = "_type"
ParamType is the key for the parameter "type"
const ParamVelocity string = "vel"
ParamVelocity is the key for the parameter "velocity"
const TriggerManual string = "u"
TriggerManual is a value for the parameter "trigger". It means that the location has been sent by the user manually.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Messages chan Message // contains filtered or unexported fields }
Client provides an mqtt client
func (*Client) Connect ¶
func (t *Client) Connect()
Connect connects to mqtt broker using the given config
func (*Client) Disconnect ¶
func (t *Client) Disconnect()
Disconnect closes the Messages channel and disconnects the mqtt client