Class: $.ThingyDelegate

Inherits:
BluetoothLowEnergy.BleDelegate show all

Overview

Instance Member Summary collapse

Instance Method Summary collapse

Instance Attribute Details

var _onCharChanged as Lang.WeakReference or Null

var _onConnection as Lang.WeakReference or Null

var _onDescriptorWrite as Lang.WeakReference or Null

var _onScanResult as Lang.WeakReference or Null

var _profileManager as $.ProfileManager

Instance Method Details

broadcastScanResult(scanResult as BluetoothLowEnergy.ScanResult) as Void

Broadcast a new scan result

Parameters:

  • scanResult —

    The new scan result

contains(iter as BluetoothLowEnergy.Iterator, obj as BluetoothLowEnergy.Uuid) as Lang.Boolean

Get whether the iterator contains a specific uuid

Parameters:

  • iter —

    Iterator of uuid objects

  • obj —

    Uuid to search for

Returns:

  • true if object found, false otherwise

initialize(profileManager as $.ProfileManager)

Constructor

Parameters:

  • profileManager —

    The profile manager

notifyCharacteristicChanged(model as $.EnvironmentProfileModel) as Void

Store a new model to handle characteristic changes

Parameters:

  • model —

    The model for characteristics

notifyConnection(model as $.ConnectionInterface) as Void

Store a new model to manage device data connections

Parameters:

  • model —

    The model for device data

notifyDescriptorWrite(model as $.EnvironmentProfileModel) as Void

Store a new model to handle descriptor writes

Parameters:

  • model —

    The model for descriptors

notifyScanResult(model as $.ScanInterface) as Void

Store a new model to manage scan results

Parameters:

  • model —

    The model containing scan results

onCharacteristicChanged(char as BluetoothLowEnergy.Characteristic, value as Lang.ByteArray) as Void

Handle a characteristic being changed

Parameters:

  • char —

    The characteristic that changed

  • value —

    The updated value of the characteristic

onConnectedStateChanged(device as BluetoothLowEnergy.Device, state as BluetoothLowEnergy.ConnectionState) as Void

Handle pairing and connecting to a device

Parameters:

  • device —

    The device state that was changed

  • state —

    The state of the connection

onDescriptorWrite(descriptor as BluetoothLowEnergy.Descriptor, status as BluetoothLowEnergy.Status) as Void

Handle the completion of a write operation on a descriptor

Parameters:

  • descriptor —

    The descriptor that was written

  • status —

    The BluetoothLowEnergy status indicating the result of the operation

onScanResults(scanResults as BluetoothLowEnergy.Iterator) as Void

Handle new scan results being received

Parameters:

  • scanResults —

    An iterator of new scan results


Generated Jun 9, 2026, 8:45:51 AM