bluetooth_low_energy library

A Flutter plugin for controlling the bluetooth low energy, supports central and peripheral apis.

Classes

The advertisement of the peripheral.
BluetoothLowEnergyManager
The abstract base class that manages central and peripheral objects.
BluetoothLowEnergyPeer
An object that represents a remote device.
BluetoothLowEnergyStateChangedEventArgs
The bluetooth low energy state changed event arguments.
Central
A remote device connected to a local app, which is acting as a peripheral.
CentralManager
An object that scans for, discovers, connects to, and manages peripherals.
ConnectionStateChangedEventArgs
The connection state cahnged event arguments.
DiscoveredEventArgs
The discovered event arguments.
EventArgs
The base event arguments.
GattCharacteristic
A characteristic of a remote peripheral’s service.
GattCharacteristicNotifiedEventArgs
The GATT characteristic notified event arguments.
GattCharacteristicNotifyStateChangedEventArgs
The GATT characteristic notify state changed event arguments.
GattCharacteristicReadEventArgs
The GATT characteristic written event arguments.
GattCharacteristicWrittenEventArgs
The GATT characteristic written event arguments.
GattDescriptor
An object that provides further information about a remote peripheral’s characteristic.
GattService
A collection of data and associated behaviors that accomplish a function or feature of a device.
Level
Levels to control logging output. Logging can be enabled to include all levels above certain Level. Levels are ordered using an integer value Level.value. The predefined Level constants below are sorted as follows (in descending order): Level.SHOUT, Level.SEVERE, Level.WARNING, Level.INFO, Level.CONFIG, Level.FINE, Level.FINER, Level.FINEST, and Level.ALL.
LogController
An interface for controlling logs.
Logger
Use a Logger to log debug messages.
LogRecord
A log entry representation used to propagate information from Logger to individual handlers.
ManufacturerSpecificData
The manufacturer specific data of the peripheral
Peripheral
A remote peripheral device.
PeripheralManager
An object that manages and advertises peripheral services exposed by this app.
UUID
128 bit universally unique identifier used in Bluetooth.

Enums

BluetoothLowEnergyState
The state of the bluetooth low energy.
GattCharacteristicProperty
The properity for a GATT characteristic.
GattCharacteristicWriteType
The write type for a GATT characteristic.

Mixins

LoggerController
Implements the LogController interface with a logger instance.
LoggerProvider
Provides a logger instance.

Constants

defaultLevel → const Level
The default Level.

Properties

hierarchicalLoggingEnabled bool
Whether to allow fine-grain logging and configuration of loggers in a hierarchy.
getter/setter pair
recordStackTraceAtLevel Level
Automatically record stack traces for any message of this level or above.
getter/setter pair