Documentation ¶
Index ¶
Constants ¶
View Source
const SENSORS_LIST_KEY = "/wff/v1/sp1/sensors/"
View Source
const SENSOR_KEY = "/wff/v1/sp1/"
View Source
const SOUND_THRESHOLD = 129
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdaptorReader ¶
type SensorService ¶
type SensorService struct {
// contains filtered or unexported fields
}
func Initialize ¶
func Initialize(gobot *gobot.Gobot, adapter AdaptorReader, broker Broker) *SensorService
func (*SensorService) NewLightSensor ¶
func (s *SensorService) NewLightSensor(pin string)
func (*SensorService) NewSoundSensor ¶
func (s *SensorService) NewSoundSensor(pin string)
func (*SensorService) NewTouchSensor ¶
func (s *SensorService) NewTouchSensor(pin string)
Click to show internal directories.
Click to hide internal directories.