coaxialcontrolio

package
v0.0.0-...-72e33f6 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Control

func Control(ctx context.Context, c dahuarpc.Conn, channel int, controls ...ControlRequest) error

Types

type Caps

type Caps struct {
	SupportControlFullcolorLight int `json:"SupportControlFullcolorLight"`
	SupportControlLight          int `json:"SupportControlLight"`
	SupportControlSpeaker        int `json:"SupportControlSpeaker"`
}

func GetCaps

func GetCaps(ctx context.Context, c dahuarpc.Conn, channel int) (Caps, error)

type ControlRequest

type ControlRequest struct {
	Type        int `json:"Type"`
	IO          int `json:"IO"`
	TriggerMode int `json:"TriggerMode"`
}

type Status

type Status struct {
	WhiteLight string `json:"WhiteLight"`
	Speaker    string `json:"Speaker"`
}

func GetStatus

func GetStatus(ctx context.Context, c dahuarpc.Conn, channel int) (Status, error)

Jump to

Keyboard shortcuts

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