mqtt_client

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MqttConsumer

type MqttConsumer struct {
	Id         int
	Connection mqtt.Client
	Topic      string
	Config     config.Config
}

func NewConsumer

func NewConsumer(cfg config.Config, id int) *MqttConsumer

func (MqttConsumer) Start

func (c MqttConsumer) Start(subscribed chan bool)

type MqttPublisher

type MqttPublisher struct {
	Id         int
	Connection mqtt.Client
	Topic      string
	Config     config.Config
}

func NewPublisher

func NewPublisher(cfg config.Config, n int) *MqttPublisher

func (MqttPublisher) Start

func (p MqttPublisher) Start()

func (MqttPublisher) StartFullSpeed

func (p MqttPublisher) StartFullSpeed()

func (MqttPublisher) StartRateLimited

func (p MqttPublisher) StartRateLimited()

Jump to

Keyboard shortcuts

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