BluetoothModule class

Module for managing Bluetooth Low Energy (BLE) operations. Supports scanning for devices and connecting to GATT peripherals.

Constructors

BluetoothModule()
Internal constructor for singleton-like access via NexoraSdk.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scanStream Stream<BleDevice>
Returns a stream of BleDevice discovered during scanning.
no setter

Methods

connect(String id) Future<bool>
Attempts to connect to a specific BLE device by its unique id. Returns true if the connection request was successfully initiated.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startScan() Future<bool>
Starts scanning for nearby BLE devices. Ensure Bluetooth permissions are granted before calling this.
stopScan() Future<bool>
Stops the active BLE scan to conserve battery.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited