Versions in this module Expand all Collapse all v0 v0.1.1 Sep 19, 2021 Changes in this version + const TCP_PORT + const TLS_PORT + type Device interface + AddEndpoint func(enp endpoints.Endpoint) + Connect func() error + Disconnect func() + GetEndpoint func(uid string) endpoints.Endpoint + RegisterOnConnectCb func(cb func()) + RegisterOnConnectionLostCb func(cb func(err error)) + func NewMqttDevice(hostname string, uid string, username string, password string, isSecure bool, ...) (Device, error) + type MqttDevice struct + func (obj *MqttDevice) AddEndpoint(enp endpoints.Endpoint) + func (obj *MqttDevice) Connect() error + func (obj *MqttDevice) Disconnect() + func (obj *MqttDevice) GetEndpoint(uid string) endpoints.Endpoint + func (obj *MqttDevice) RegisterOnConnectCb(cb func()) + func (obj *MqttDevice) RegisterOnConnectionLostCb(cb func(err error)) + func (obj *MqttDevice) SendConfigs()