physicaltwinconnection

package
v0.0.0-...-555a65a Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection interface {
	HandleControllCommand(serviceDefinition models.ControllCommandModel, commands any) (map[string]any, error)
	HandleSensorRequest(serviceDefinition models.SensedPropertyModel) (map[string]any, error)
	// contains filtered or unexported methods
}

func NewConnection

func NewConnection(physicalTwinConnection physicaltwinmodels.PhysicalTwinConnectionModel) (Connection, error)

type SimpleCoapConnectionModel

type SimpleCoapConnectionModel struct {
	Address string `json:"address"`
	Port    int    `json:"port"`
}

func (SimpleCoapConnectionModel) HandleControllCommand

func (simpleCoapConnectionModel SimpleCoapConnectionModel) HandleControllCommand(controllCommandModel models.ControllCommandModel, commands any) (map[string]any, error)

func (SimpleCoapConnectionModel) HandleSensorRequest

func (simpleCoapConnectionModel SimpleCoapConnectionModel) HandleSensorRequest(sensedPropertyModel models.SensedPropertyModel) (map[string]any, error)

Jump to

Keyboard shortcuts

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