Documentation
¶
Index ¶
- Constants
- type BarometricSensor
- func (s *BarometricSensor) Disable() error
- func (s *BarometricSensor) Enable() error
- func (s BarometricSensor) GetName() string
- func (s *BarometricSensor) IsEnabled() (bool, error)
- func (s *BarometricSensor) IsNotifying() (bool, error)
- func (s *BarometricSensor) Read() (float64, error)
- func (s *BarometricSensor) StartNotify(macAddress string) error
- func (s *BarometricSensor) StopNotify() error
- type HumiditySensor
- func (s *HumiditySensor) Disable() error
- func (s *HumiditySensor) Enable() error
- func (s HumiditySensor) GetName() string
- func (s *HumiditySensor) IsEnabled() (bool, error)
- func (s *HumiditySensor) IsNotifying() (bool, error)
- func (s *HumiditySensor) Read() (float64, error)
- func (s *HumiditySensor) StartNotify(macAddress string) error
- func (s *HumiditySensor) StopNotify() error
- type LuxometerSensor
- func (s *LuxometerSensor) Disable() error
- func (s *LuxometerSensor) Enable() error
- func (s LuxometerSensor) GetName() string
- func (s *LuxometerSensor) IsEnabled() (bool, error)
- func (s *LuxometerSensor) IsNotifying() (bool, error)
- func (s *LuxometerSensor) Read() (float64, error)
- func (s *LuxometerSensor) StartNotify(macAddress string) error
- func (s *LuxometerSensor) StopNotify() error
- type MpuSensor
- func (s *MpuSensor) Disable() error
- func (s *MpuSensor) Enable() error
- func (s MpuSensor) GetName() string
- func (s *MpuSensor) IsEnabled() (bool, error)
- func (s *MpuSensor) IsNotifying() (bool, error)
- func (s *MpuSensor) Read() (float64, error)
- func (s *MpuSensor) StartNotify(macAddress string) error
- func (s *MpuSensor) StopNotify() error
- type Sensor
- type SensorTag
- type SensorTagDeviceInfo
- type TemperatureSensor
- func (s *TemperatureSensor) Disable() error
- func (s *TemperatureSensor) Enable() error
- func (s TemperatureSensor) GetName() string
- func (s *TemperatureSensor) IsEnabled() (bool, error)
- func (s *TemperatureSensor) IsNotifying() (bool, error)
- func (s *TemperatureSensor) Read() (float64, error)
- func (s *TemperatureSensor) StartNotify(macAddress string) error
- func (s *TemperatureSensor) StopNotify() error
Constants ¶
View Source
const ( TemperaturePeriodHigh = 0x32 // 500 ms, TemperaturePeriodMedium = 0x64 // 1000 ms, TemperaturePeriodLow = 0x128 // 2000 ms, )
Period =[Input*10]ms,(lowerlimit 300 ms, max 2500ms),default 1000 ms
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BarometricSensor ¶
type BarometricSensor struct {
// contains filtered or unexported fields
}
func (*BarometricSensor) Disable ¶
func (s *BarometricSensor) Disable() error
func (*BarometricSensor) Enable ¶
func (s *BarometricSensor) Enable() error
func (BarometricSensor) GetName ¶
func (s BarometricSensor) GetName() string
func (*BarometricSensor) IsEnabled ¶
func (s *BarometricSensor) IsEnabled() (bool, error)
func (*BarometricSensor) IsNotifying ¶
func (s *BarometricSensor) IsNotifying() (bool, error)
func (*BarometricSensor) Read ¶
func (s *BarometricSensor) Read() (float64, error)
func (*BarometricSensor) StartNotify ¶
func (s *BarometricSensor) StartNotify(macAddress string) error
func (*BarometricSensor) StopNotify ¶
func (s *BarometricSensor) StopNotify() error
type HumiditySensor ¶
type HumiditySensor struct {
// contains filtered or unexported fields
}
func (*HumiditySensor) Disable ¶
func (s *HumiditySensor) Disable() error
func (*HumiditySensor) Enable ¶
func (s *HumiditySensor) Enable() error
func (HumiditySensor) GetName ¶
func (s HumiditySensor) GetName() string
func (*HumiditySensor) IsEnabled ¶
func (s *HumiditySensor) IsEnabled() (bool, error)
func (*HumiditySensor) IsNotifying ¶
func (s *HumiditySensor) IsNotifying() (bool, error)
func (*HumiditySensor) Read ¶
func (s *HumiditySensor) Read() (float64, error)
func (*HumiditySensor) StartNotify ¶
func (s *HumiditySensor) StartNotify(macAddress string) error
func (*HumiditySensor) StopNotify ¶
func (s *HumiditySensor) StopNotify() error
type LuxometerSensor ¶
type LuxometerSensor struct {
// contains filtered or unexported fields
}
func (*LuxometerSensor) Disable ¶
func (s *LuxometerSensor) Disable() error
func (*LuxometerSensor) Enable ¶
func (s *LuxometerSensor) Enable() error
func (LuxometerSensor) GetName ¶
func (s LuxometerSensor) GetName() string
func (*LuxometerSensor) IsEnabled ¶
func (s *LuxometerSensor) IsEnabled() (bool, error)
func (*LuxometerSensor) IsNotifying ¶
func (s *LuxometerSensor) IsNotifying() (bool, error)
func (*LuxometerSensor) Read ¶
func (s *LuxometerSensor) Read() (float64, error)
func (*LuxometerSensor) StartNotify ¶
func (s *LuxometerSensor) StartNotify(macAddress string) error
func (*LuxometerSensor) StopNotify ¶
func (s *LuxometerSensor) StopNotify() error
type MpuSensor ¶
type MpuSensor struct {
// contains filtered or unexported fields
}
func (*MpuSensor) IsNotifying ¶
func (*MpuSensor) StartNotify ¶
func (*MpuSensor) StopNotify ¶
type SensorTag ¶
type SensorTag struct { *api.Device Temperature TemperatureSensor Humidity HumiditySensor Mpu MpuSensor Barometric BarometricSensor Luxometer LuxometerSensor DeviceInfo SensorTagDeviceInfo }
SensorTag a SensorTag object representation
type SensorTagDeviceInfo ¶
type SensorTagDeviceInfo struct {
// contains filtered or unexported fields
}
type TemperatureSensor ¶
type TemperatureSensor struct {
// contains filtered or unexported fields
}
func (*TemperatureSensor) Disable ¶
func (s *TemperatureSensor) Disable() error
Disable measurements
func (TemperatureSensor) GetName ¶
func (s TemperatureSensor) GetName() string
GetName return the sensor name
func (*TemperatureSensor) IsEnabled ¶
func (s *TemperatureSensor) IsEnabled() (bool, error)
IsEnabled check if measurements are enabled
func (*TemperatureSensor) IsNotifying ¶
func (s *TemperatureSensor) IsNotifying() (bool, error)
IsNotifying check if notyfing
func (*TemperatureSensor) Read ¶
func (s *TemperatureSensor) Read() (float64, error)
Read value from the sensor
func (*TemperatureSensor) StartNotify ¶
func (s *TemperatureSensor) StartNotify(macAddress string) error
func (*TemperatureSensor) StopNotify ¶
func (s *TemperatureSensor) StopNotify() error
StopNotify disable temperature DataChannel
Click to show internal directories.
Click to hide internal directories.