mqtt

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OnError = iota
	OnMessageReceived
	OnConnecting
	OnConnect
	OnConnectionLost
	OnSubscribed
	OnCancelled
)

Variables

This section is empty.

Functions

func SubscribeToAzureIotHub

func SubscribeToAzureIotHub(ctx context.Context, device *AzureIotHubDevice) <-chan Event

Types

type AzureIotHubDevice

type AzureIotHubDevice struct {
	DeviceId        string
	Host            string
	SharedAccessKey string
}

type Event

type Event struct {
	Type    EventType
	Message []byte
	Error   error
}

type EventType

type EventType int

Jump to

Keyboard shortcuts

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