ble_ex library

Classes

$ConnectionStateUpdate
$DiscoveredDevice
$DiscoveredService
$ScanResult
BleEx
封装后的Ble外围设备管理器
BleLogLevel
Log等级,用于指定 BleEx 的 logLevel
BlePeripheral
从设备
BleScanningTask
扫描任务
BleSearchingTask
搜索任务
CharacteristicInstance
CharacteristicValue
Value update for specific CharacteristicInstance.
ConnectionPriorityInfo
Result of the connection priority request
ConnectionStateUpdate
Status update for a specific BLE device.
ConnectionStateUpdate$
ConnectionStateUpdate$Change
DiscoveredCharacteristic
Specific BLE characteristic for a BLE device characterized by deviceId, serviceId and characteristicId.
DiscoveredDevice
Ble device that is discovered during scanning.
DiscoveredDevice$
DiscoveredDevice$Change
DiscoveredService
DiscoveredService$
DiscoveredService$Change
FlutterReactiveBle
FlutterReactiveBle is the facade of the library. Its interface allows to perform all the supported BLE operations.
GenericFailure<T>
Error result of a BLE operation.
Logger
ManufacturerSampleFilter
QualifiedCharacteristic
Specific BLE characteristic for a BLE device characterized by deviceId, serviceId and characteristicId.
ReactiveBlePlatform
The interface that implementations of reactive_ble must implement.
Repeater<T>
Repeater sets an underlying stream up on the first subscription to the output stream and shuts it down when there are no more subscriptions.
Result<Value, Failure>
Result of a ble operation.
ScanResult
Result of a scan interval.
ScanResult$
ScanResult$Change
ScanSession
SerialDisposable<T>
A disposable resource whose underlying resource can be replaced by another resource causing automatic disposal of the previous underlying resource.
ServiceSampleFilter
StreamSubscriptionSerialDisposable
A SerialDisposable that constains an underlying stream subscription.
Unit
Uuid
Representation of a 16, 32 or 128-bit number used to identify BLE services and characteristics.
WriteCharacteristicInfo

Enums

BleStatus
The status of the BLE subsystem as reported by the platform API.
CharacteristicValueUpdateError
Error type for characteristic value update.
ClearGattCacheError
Error type of Clear Gatt cache operation.
Connectable
Shows if the device is ready to be connected to from a discovery perspective
ConnectionError
Type of connection error.
ConnectionPriority
The priority that can be requested to update the connection parameter.
ConnectionPriorityFailure
Error type for connection priority.
ConnectionStatus
Connection status of the BLE device.
DeviceConnectionState
Connection status.
LogLevel
States the level of debug logging within this library
ScanFailure
Failure type of device discovery.
ScanMode
Android only: mode in which BLE discovery is executed.
WriteCharacteristicFailure

Functions

bleLog(String tag, String msg) → void
内部日志输出
convertPriorityToInt(ConnectionPriority priority) int
util function to convert priority to a integer.
convertScanModeToArgs(ScanMode scanMode) int
Converts ScanMode to integer representation.

Typedefs

ConnectionErrorListener = void Function(BlePeripheral target, Object error)
ConnectionListener = void Function(BlePeripheral target)
DevicesFilter = bool Function(DiscoveredDevice device)
设备过滤器,用于搜索或查找
NotifyListener = void Function(BlePeripheral target, Uuid service, Uuid characteristic, Uint8List data)
ScanningListener = void Function(DiscoveredDevice device)
搜索监听