Class: $.EnvironmentProfileModel
- Inherits:
-
Toybox.Lang.Object
-
Toybox.Lang.Object
-
Overview
Instance Member Summary collapse
- _eco2 as Lang.Numeric or Null
- _humidity as Lang.Numeric or Null
- _pendingNotifies as Lang.Array<BluetoothLowEnergy.Characteristic>
- _pressure as Lang.Numeric or Null
- _profileManager as $.ProfileManager
- _service as BluetoothLowEnergy.Service or Null
- _temperature as Lang.Numeric or Null
- _tvoc as Lang.Numeric or Null
Instance Method Summary collapse
-
activateNextNotification() as Void
Write the next notification to the descriptor.
-
getEco2() as Lang.Numeric or Null
Get the ECO2 value.
-
getHumidity() as Lang.Numeric or Null
Get the humidity.
-
getPressure() as Lang.Numeric or Null
Get the pressure.
-
getTemperature() as Lang.Numeric or Null
Get the temperature.
-
getTvoc() as Lang.Numeric or Null
Get the TVOC value.
-
initialize(delegate as $.ThingyDelegate, profileManager as $.ProfileManager, device as BluetoothLowEnergy.Device)
Constructor.
-
onCharacteristicChanged(char as BluetoothLowEnergy.Characteristic, value as Lang.ByteArray) as Void
Handle a characteristic being changed.
-
onDescriptorWrite(descriptor as BluetoothLowEnergy.Descriptor, status as BluetoothLowEnergy.Status) as Void
Handle the completion of a write operation on a descriptor.
-
processAirQualityValue(value as Lang.ByteArray) as Void
Process and set the air quality values.
-
processCccdWrite() as Void
Process a CCCD write operation.
-
processHumidityValue(value as Lang.ByteArray) as Void
Process and set the humidity value.
-
processPressureValue(value as Lang.ByteArray) as Void
Process and set the pressure value.
-
processTemperatureValue(value as Lang.ByteArray) as Void
Process and set the temperature value.
Instance Attribute Details
var _eco2 as Lang.Numeric or Null
var _humidity as Lang.Numeric or Null
var _pendingNotifies as Lang.Array<BluetoothLowEnergy.Characteristic>
var _pressure as Lang.Numeric or Null
var _profileManager as $.ProfileManager
var _service as BluetoothLowEnergy.Service or Null
var _temperature as Lang.Numeric or Null
var _tvoc as Lang.Numeric or Null
Instance Method Details
activateNextNotification() as Void
Write the next notification to the descriptor
getEco2() as Lang.Numeric or Null
Get the ECO2 value
getHumidity() as Lang.Numeric or Null
Get the humidity
getPressure() as Lang.Numeric or Null
Get the pressure
getTemperature() as Lang.Numeric or Null
Get the temperature
getTvoc() as Lang.Numeric or Null
Get the TVOC value
initialize(delegate as $.ThingyDelegate, profileManager as $.ProfileManager, device as BluetoothLowEnergy.Device)
Constructor
onCharacteristicChanged(char as BluetoothLowEnergy.Characteristic, value as Lang.ByteArray) as Void
Handle a characteristic being changed
onDescriptorWrite(descriptor as BluetoothLowEnergy.Descriptor, status as BluetoothLowEnergy.Status) as Void
Handle the completion of a write operation on a descriptor
processAirQualityValue(value as Lang.ByteArray) as Void
Process and set the air quality values
processCccdWrite() as Void
Process a CCCD write operation
processHumidityValue(value as Lang.ByteArray) as Void
Process and set the humidity value
processPressureValue(value as Lang.ByteArray) as Void
Process and set the pressure value
processTemperatureValue(value as Lang.ByteArray) as Void
Process and set the temperature value