mqtt

package
v0.0.0-...-f3fabb5 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceAttributesReportMessage

type DeviceAttributesReportMessage struct {
	ClusterID         uint16
	ClusterName       string
	ClusterType       string
	ClusterAttributes interface{}
}

type DeviceDefaultResponseMessage

type DeviceDefaultResponseMessage struct {
	ClusterID         uint16
	CommandIdentifier uint8
	Status            uint8
}

type DeviceDescriptionMessage

type DeviceDescriptionMessage struct {
	IEEEAddress      uint64
	LogicalType      uint8
	ManufacturerCode uint16
	Endpoints        []EndpointDescription
}

type DeviceGetMessage

type DeviceGetMessage struct {
	ClusterID  uint16
	Endpoint   uint8
	Attributes []uint16
}

type DeviceMessage

type DeviceMessage struct {
	IEEEAddress uint64
	LinkQuality uint8
	Message     interface{}
}

type DeviceSetMessage

type DeviceSetMessage struct {
	ClusterID         uint16
	Endpoint          uint8
	CommandIdentifier uint8
	CommandData       map[string]interface{}
}

type EndpointDescription

type EndpointDescription struct {
	Endpoint       uint8
	ProfileID      uint16
	DeviceID       uint16
	DeviceVersion  uint8
	InClusterList  []uint16
	OutClusterList []uint16
}

type MqttClient

type MqttClient interface {
	Dispose()
	Publish(subTopic string, data []byte)
	Subscribe(callback func(topic string, message []byte))
	UnSubscribe()
}

func NewClient

func NewClient(config *configuration.Configuration) (MqttClient, func())

type SetGatewayConfig

type SetGatewayConfig struct {
	PermitJoin bool
}

Jump to

Keyboard shortcuts

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