Class: $.DeviceManager
- Inherits:
-
Toybox.Lang.Object
-
Toybox.Lang.Object
-
Overview
Instance Member Summary collapse
- _config as BluetoothLowEnergy.Characteristic or Null
- _configComplete as Lang.Boolean
- _device as BluetoothLowEnergy.Device or Null
- _profileManager as $.ProfileManager
- _sampleInProgress as Lang.Boolean
- _soundService as BluetoothLowEnergy.Service or Null
- _speakerData as BluetoothLowEnergy.Characteristic or Null
Instance Method Summary collapse
-
initialize(bleDelegate as $.ThingyDelegate, profileManager as $.ProfileManager)
Constructor.
-
playSample(sampleId as Lang.Number) as Void
Play the sample sound.
-
procCharWrite(char as BluetoothLowEnergy.Characteristic, status as BluetoothLowEnergy.Status) as Void
Handle the completion of a write operation on a characteristic.
-
procConnection(device as BluetoothLowEnergy.Device) as Void
Process a new device connection.
-
procScanResult(scanResult as BluetoothLowEnergy.ScanResult) as Void
Process scan result.
-
start() as Void
Start BLE scanning.
-
startSoundControl() as Void
Start the sound control on the device.
Instance Attribute Details
var _config as BluetoothLowEnergy.Characteristic or Null
var _configComplete as Lang.Boolean
var _device as BluetoothLowEnergy.Device or Null
var _profileManager as $.ProfileManager
var _sampleInProgress as Lang.Boolean
var _soundService as BluetoothLowEnergy.Service or Null
var _speakerData as BluetoothLowEnergy.Characteristic or Null
Instance Method Details
initialize(bleDelegate as $.ThingyDelegate, profileManager as $.ProfileManager)
Constructor
playSample(sampleId as Lang.Number) as Void
Play the sample sound
procCharWrite(char as BluetoothLowEnergy.Characteristic, status as BluetoothLowEnergy.Status) as Void
Handle the completion of a write operation on a characteristic
procConnection(device as BluetoothLowEnergy.Device) as Void
Process a new device connection
procScanResult(scanResult as BluetoothLowEnergy.ScanResult) as Void
Process scan result
start() as Void
Start BLE scanning
startSoundControl() as Void
Start the sound control on the device