Documentation ¶
Index ¶
Constants ¶
View Source
const DriverName = "pestsense"
Variables ¶
View Source
var Factory driver.Factory = factory{}
Functions ¶
This section is empty.
Types ¶
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 ¶
func (o *PestSensor) PullOccupancy(request *traits.PullOccupancyRequest, server traits.OccupancySensorApi_PullOccupancyServer) error
Click to show internal directories.
Click to hide internal directories.