mqtt

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package mqtt publishes notification messages to an MQTT broker.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Publish

func Publish(broker, clientID, topic, message string, qos byte, retain bool, username, password string) error

Publish connects to an MQTT broker, publishes a message to the given topic, and disconnects. Each invocation creates a fresh connection — simple and stateless, matching the webhook pattern.

Types

This section is empty.

Jump to

Keyboard shortcuts

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