Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DevicesFromJSON

func DevicesFromJSON(path string, m device.Transport) (func(), error)

DevicesFromJSON creates fake devices on the broker based on the devices defined in a JSON file When you run the returned cleanup function it will delete the devices. Note that unless you then also close the transport it might still announce the device(s) when it receives a discover.

func MQTTAddress

func MQTTAddress(t *testing.T) string

MQTTAddress is a helper function that will try to connect to an MQTT broker on MQTT_ADDRESS and if successful return the address. It should only be used in Bibliotek's own tests or other Hemtjanst component tests

Types

This section is empty.

Source Files