Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Type string
Broker string
Username string
Password string
Subscribe string
Publish string
QoS int
TransmitPreDelay string
Insecure bool
}
Config data
type Endpoint ¶
type Endpoint struct {
GatewayCfg *gwTY.Config
Config Config
Client paho.Client
// contains filtered or unexported fields
}
Endpoint data
func New ¶
func New(logger *zap.Logger, gwCfg *gwTY.Config, protocol cmap.CustomMap, rxMsgFunc func(rm *msgTY.RawMessage) error, bus busTY.Plugin, logRootDir string) (*Endpoint, error)
New mqtt driver
Click to show internal directories.
Click to hide internal directories.