mqttdriver

package
v0.0.0-...-3261583 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BrokerHost = "192.168.1.37"
	BrokerPort = 1883
	ClientId   = "my-plc-server-pubsub"
	UserName   = "user1"
	Password   = "userpassword1"
)
View Source
var Publish = make(chan Message)
View Source
var SubscribeSubdir string = "metric/#"
View Source
var Subsribe = make(chan Message)

Functions

func Init

func Init()

func LinkInputbool

func LinkInputbool(id string, def bool) func() bool

bool

func LinkInputfloat64

func LinkInputfloat64(id string, def float64) func() float64

float64

func LinkInputint

func LinkInputint(id string, def int) func() int

int

func LinkOutputbool

func LinkOutputbool(id string) func(bool)

func LinkOutputfloat64

func LinkOutputfloat64(id string) func(float64)

func LinkOutputint

func LinkOutputint(id string) func(int)

Types

type Message

type Message struct {
	Topic string
	Body  string
}

Jump to

Keyboard shortcuts

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