universal_ble library
Classes
- AndroidOptions
- Android options to scan devices
- BleCapabilities
- BleCharacteristic
- BleCommand
- BleDescriptor
- BleDevice
- BleService
- BleUuidParser
- CharacteristicSubscription
- Manages subscription to a characteristic's notifications or indications.
- ExclusionFilter
- ManufacturerData
- Represents the manufacturer data of a BLE device.
- ManufacturerDataFilter
- PlatformConfig
- Platform specific config to scan devices
- ScanFilter
- UniversalBle
- UniversalBlePlatform
- WebOptions
-
Web options to scan devices
optionalServices is a list of service uuid's to ensure that you can access the specified services after connecting to the device,
by default services from scanFilter will be used
optionalManufacturerData is list of
CompanyIdentifier'sand used to addManufacturerDatain advertisement results of selected device from web dialog, by default manufacturerData from scanFilter will be used Checkout more details on web Note: you will only get advertisements if Experimental Flag is enabled in the browser
Enums
Extensions
- BleCharacteristicExtension on BleCharacteristic
- Extension methods for BleCharacteristic to simplify common operations.
- BleDeviceExtension on BleDevice
- Extension methods for BleDevice to simplify common operations.
- BleServiceExtension on BleService
- Extension methods for BleService objects.
-
StringListToUUID
on List<
String> - Parse a list of strings to a list of UUIDs.
Typedefs
- OnAvailabilityChange = void Function(AvailabilityState state)
- OnConnectionChange = void Function(String deviceId, bool isConnected, String? error)
- OnPairingStateChange = void Function(String deviceId, bool isPaired)
- OnQueueUpdate = void Function(String id, int remainingQueueItems)
- OnScanResult = void Function(BleDevice scanResult)
- OnValueChange = void Function(String deviceId, String characteristicId, Uint8List value, int? timestamp)
Exceptions / Errors
- ConnectionException
- Exception thrown when connection-related errors occur
- PairingException
- Exception thrown when pairing-related errors occur
- UniversalBleException
- Base exception class for all BLE errors with typed error codes
- WebBluetoothGloballyDisabled
- Exception thrown when Web Bluetooth API is globally disabled