events

package
v0.0.0-...-9776fe2 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmptyHeader = &Header{Empty: true}

Functions

This section is empty.

Types

type BinaryEvent

type BinaryEvent struct {
	EventType EventType
	Events    []Event
	Data      []byte
}

func InitBinaryEvent

func InitBinaryEvent(bytes []byte, eventType EventType) *BinaryEvent

type Event

type Event struct {
	UUID     string
	UUIDIcon string
	Value    float64
	Text     string
}

Event represent a Loxone EventTypeEvent with an UUID and a Value

type EventType

type EventType int
const (
	EventTypeText         EventType = 0
	EventTypeFile         EventType = 1
	EventTypeEvent        EventType = 2
	EventTypeEventtext    EventType = 3
	EventTypeDaytimer     EventType = 4
	EventTypeOutofservice EventType = 5
	EventTypeKeepalive    EventType = 6
	EventTypeWeather      EventType = 7
)
type Header struct {
	EventType EventType
	Length    int
	Estimated bool
	Empty     bool
}

func IdentifyHeader

func IdentifyHeader(bytes []byte) (*Header, error)

Jump to

Keyboard shortcuts

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