osdp_application

package
v0.2.17 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartCommunication

func StartCommunication(ctx context.Context, transceiver osdp.OSDPTransceiver, osdpHandler OSDPMessageHandler, outgoingMessageChan chan *osdp.OSDPMessage, errorHandler ErrorHandler, peripheralAddress byte)

Types

type ErrorHandler

type ErrorHandler func(err error)

type ExampleTransceiver

type ExampleTransceiver struct{}

func NewTransceiver

func NewTransceiver() *ExampleTransceiver

func (*ExampleTransceiver) Receive

func (transceiver *ExampleTransceiver) Receive() ([]byte, error)

func (*ExampleTransceiver) Transmit

func (transceiver *ExampleTransceiver) Transmit(payload []byte) error

type OSDPMessageHandler

type OSDPMessageHandler func(osdpMessage *osdp.OSDPMessage)

Jump to

Keyboard shortcuts

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