lightSensor

package
v0.0.0-...-8f13b60 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2018 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CurrentAmbientLightLevel

type CurrentAmbientLightLevel struct {
	*characteristic.Float
}

CurrentAmbientLightLevel ...

type CustomLightSensor

type CustomLightSensor struct {
	*service.Service

	CurrentAmbientLightLevel *CurrentAmbientLightLevel
}

CustomLightSensor ...

type LightSensor

type LightSensor struct {
	*accessory.Accessory
	*CustomLightSensor
	// contains filtered or unexported fields
}

LightSensor stores the details of a device that is being bridged

func New

func New(topic, displayName string) *LightSensor

New returns a new LightSensor device

func (*LightSensor) Acc

func (l *LightSensor) Acc() *accessory.Accessory

Acc returns the accessory

func (*LightSensor) Service

func (l *LightSensor) Service() *service.Service

Service returns the service

func (*LightSensor) Topic

func (l *LightSensor) Topic() string

Topic returns the topic

func (*LightSensor) Update

func (l *LightSensor) Update(value []byte) error

Update a LightSensor device with a new received value.

Jump to

Keyboard shortcuts

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