Documentation ¶
Index ¶
- Constants
- Variables
- func Close()
- func Open() paho.Token
- func OpenBy(fn paho.OpenConnectionFunc) paho.Token
- func Publish(topic string, payload any) paho.Token
- func Subscribe(filter string, cb func(topic string, payload []byte)) paho.Token
- func SubscribeExt[T any](filter string, cb func(topic string, value *T))
- func SubscribeStruct[T any](filter string, cb func(topic string, data *T)) paho.Token
Constants ¶
View Source
const MODULE = "mqtt"
Variables ¶
View Source
var Client paho.Client
Functions ¶
func SubscribeExt ¶ added in v4.0.13
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.