pestsense

package
v0.2024.5 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const DriverName = "pestsense"

Variables

View Source
var Factory driver.Factory = factory{}

Functions

This section is empty.

Types

type Driver

type Driver struct {
	*service.Service[config.Root]
	// contains filtered or unexported fields
}

type PestSensor

type PestSensor struct {
	traits.UnimplementedOccupancySensorApiServer

	Id        string
	Occupancy *resource.Value
}

func NewPestSensor

func NewPestSensor(id string) *PestSensor

func (*PestSensor) GetOccupancy

func (s *PestSensor) GetOccupancy(ctx context.Context, request *traits.GetOccupancyRequest) (*traits.Occupancy, error)

func (*PestSensor) PullOccupancy

type Response

type Response struct {
	Source                     string `json:"source"`
	Detections                 int    `json:"detections"`
	PacketType                 int    `json:"packettype"`
	IndividualDeviceDetections int    `json:"individualdevicedetections"`
	DeviceNumber               string `json:"devicenumber"`
	DeviceId                   int    `json:"deviceid"`
	Action                     string `json:"action"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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