First tune to on off value for light sensor
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
f13ee65ead
commit
ca976b1143
|
@ -31,9 +31,9 @@ type DarknessPayload struct {
|
||||||
func NewLightSensor(info Info, client paho.Client) *lightSensor {
|
func NewLightSensor(info Info, client paho.Client) *lightSensor {
|
||||||
l := &lightSensor{info: info}
|
l := &lightSensor{info: info}
|
||||||
|
|
||||||
// @TODO Two completely random values for now
|
// First tune: 15 000 - 16 000
|
||||||
l.minValue = 8000
|
l.minValue = 15000
|
||||||
l.maxValue = 16000
|
l.maxValue = 18000
|
||||||
|
|
||||||
l.timeout = time.Minute
|
l.timeout = time.Minute
|
||||||
l.timer = time.NewTimer(l.timeout)
|
l.timer = time.NewTimer(l.timeout)
|
||||||
|
|
Reference in New Issue
Block a user