device

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TopicOnvifGetResource    = "$hw/events/onvif/resource/get"
	TopicOnvifGetResrouceRet = "$hw/events/onvif/resource/getRet"
)

Topics for communication with 3-rd applications.

Variables

This section is empty.

Functions

func DevInit

func DevInit(configmapPath string) error

DevInit initialize the device datas.

func DevStart

func DevStart()

DevStart start all devices.

func On3rdParty

func On3rdParty(client mqtt.Client, message mqtt.Message)

On3rdParty callback function of Mqtt message from 3rd-party applications.

func OnEventBus

func OnEventBus(client mqtt.Client, message mqtt.Message)

OnEventBus callback function of Mqtt message from eventbus.

Types

type GetStatus

type GetStatus struct {
	Client *driver.OnvifClient
	Status string
	// contains filtered or unexported fields
}

GetStatus is the timer structure for getting device status.

func (*GetStatus) Run

func (gs *GetStatus) Run()

Run timer function.

type TwinData

type TwinData struct {
	Client *driver.OnvifClient
	Name   string
	Method string
	Value  string
	Topic  string
}

TwinData is the timer structure for getting twin/data.

func (*TwinData) Run

func (td *TwinData) Run()

Run timer function.

Jump to

Keyboard shortcuts

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