mqtt

package
v0.0.0-...-ab041b8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// WeatherTopicPattern is the topic pattern to listen to for readings
	// from all weather stations
	WeatherTopicPattern = "weather/+/readings"
)

Variables

This section is empty.

Functions

func CreateWeatherTopic

func CreateWeatherTopic(station string) string

CreateWeatherTopic creates a specific topic for weather readings from the named weather station

func NewTLSClient

func NewTLSClient(name string, server string) MQTT.Client

NewTLSClient returns a new MQTT client, with TLS configured already.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL