mqtt

package
v0.0.0-...-472a40a Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PREV_AgentKey string
View Source
var PREV_HubKey string
View Source
var PREV_MQTTPassword string
View Source
var PREV_MQTTURI string

We'll cache the MQTT settings to know if we need to reinitialize the MQTT client connection. If we update the configuration but no new MQTT settings are provided, we don't need to restart it.

View Source
var PREV_MQTTUsername string

Functions

func ConfigureMQTT

func ConfigureMQTT(configDirectory string, configuration *models.Configuration, communication *models.Communication) mqtt.Client

func DisconnectMQTT

func DisconnectMQTT(mqttClient mqtt.Client, config *models.Config)

func HandleAudio

func HandleAudio(mqttClient mqtt.Client, hubKey string, payload models.Payload, configuration *models.Configuration, communication *models.Communication)

func HandleGetPTZPosition

func HandleGetPTZPosition(mqttClient mqtt.Client, hubKey string, payload models.Payload, configuration *models.Configuration, communication *models.Communication)

func HandleNavigatePTZ

func HandleNavigatePTZ(mqttClient mqtt.Client, hubKey string, payload models.Payload, configuration *models.Configuration, communication *models.Communication)

func HandleReceiveHDCandidates

func HandleReceiveHDCandidates(mqttClient mqtt.Client, hubKey string, payload models.Payload, configuration *models.Configuration, communication *models.Communication)

func HandleRecording

func HandleRecording(mqttClient mqtt.Client, hubKey string, payload models.Payload, configuration *models.Configuration, communication *models.Communication)

func HandleRequestConfig

func HandleRequestConfig(mqttClient mqtt.Client, hubKey string, payload models.Payload, configuration *models.Configuration, communication *models.Communication)

func HandleRequestHDStream

func HandleRequestHDStream(mqttClient mqtt.Client, hubKey string, payload models.Payload, configuration *models.Configuration, communication *models.Communication)

func HandleRequestSDStream

func HandleRequestSDStream(mqttClient mqtt.Client, hubKey string, payload models.Payload, configuration *models.Configuration, communication *models.Communication)

func HandleTriggerRelay

func HandleTriggerRelay(mqttClient mqtt.Client, hubKey string, payload models.Payload, configuration *models.Configuration, communication *models.Communication)

func HandleUpdateConfig

func HandleUpdateConfig(mqttClient mqtt.Client, hubKey string, payload models.Payload, configDirectory string, configuration *models.Configuration, communication *models.Communication)

func HandleUpdatePTZPosition

func HandleUpdatePTZPosition(mqttClient mqtt.Client, hubKey string, payload models.Payload, configuration *models.Configuration, communication *models.Communication)

func HasMQTTClientModified

func HasMQTTClientModified(configuration *models.Configuration) bool

func MQTTListenerHandler

func MQTTListenerHandler(mqttClient mqtt.Client, hubKey string, configDirectory string, configuration *models.Configuration, communication *models.Communication)

Types

This section is empty.

Jump to

Keyboard shortcuts

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