noop

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient() client.Client

NewClient returns a new noop Client

Types

type Client

type Client struct{}

Client is a camera client for cameras which don't have any other camera or manufacturer specific clients to leverage. All of this client's methods return an error if information is requested and otherwise comply silently with direction to Initialize or Release.

func (Client) CameraInit

func (n Client) CameraInit(edgexDevice e_models.Device, ipAddress string, username string, password string)

CameraInit immediately returns control to the caller

func (Client) CameraRelease

func (n Client) CameraRelease(force bool)

CameraRelease immediately returns control to the caller

func (Client) HandleReadCommand

func (n Client) HandleReadCommand(req models.CommandRequest) (*models.CommandValue, error)

HandleReadCommand triggers a protocol Read operation for the specified device, resulting in an error for an unrecognized read command.

func (Client) HandleWriteCommand

func (n Client) HandleWriteCommand(req models.CommandRequest, param *models.CommandValue) error

HandleWriteCommand triggers a protocol Write operation; resulting in an error for an unrecognized write command

Jump to

Keyboard shortcuts

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