bluetooth_low_energy 6.0.0-dev.3 bluetooth_low_energy: ^6.0.0-dev.3 copied to clipboard
A Flutter plugin for controlling the bluetooth low energy, supports central and peripheral roles.
6.0.0-dev.3 #
- Implement
CentralMananger#showAppSettings
on iOS. - Implement
PeripheralManager#showAppSettings
on iOS. - Fix known issues.
6.0.0-dev.2 #
- Add
int
type toUUID#fromAddress
. - Move the type of
Advertisement#manufacturerSpecificData
toList<ManufacturerSpecificData>
. - Rewrite example with MVVM.
- Fix known issues.
6.0.0-dev.1 #
- Add
PeripheralManager#respondReadRequestWithValue
. - Add
PeripheralManager#respondReadRequestWithError
. - Add
PeripheralManager#respondWriteRequest
. - Add
PeripheralManager#respondWriteRequestWithError
. - Remove
PeripheralManager#respondCharacteristicReadRequestWithValue
. - Remove
PeripheralManager#respondCharacteristicReadRequestWithError
. - Remove
PeripheralManager#respondCharacteristicWriteRequest
. - Remove
PeripheralManager#respondCharacteristicWriteRequestWithError
. - Remove
PeripheralManager#respondDescriptorReadRequestWithValue
. - Remove
PeripheralManager#respondDescriptorReadRequestWithError
. - Remove
PeripheralManager#respondDescriptorWriteRequest
. - Remove
PeripheralManager#respondDescriptorWriteRequestWithError
.
6.0.0-dev.0 #
- Add
CentralManager#retrieveConnectedPeripherals
method. - Add optional
serviceUUIDs
argument to theCentralManager#startDiscovery
method. - Add
CentralManager#mtuChanged
event. - Add
PeripheralManager#mtuChanged
event. - Add
BluetoothLowEnergyManager#authorize
method. - Add
BluetoothLowEnergyManager#showAppSettings
method. - Add
CentralManager#requestMTU
method. - Add
CentralManager#getMaximumWriteLength
method. - Add
PeripheralManager#connectionStateChanged
event. - Add
PeripheralManager#characteristicReadRequested
event. - Add
PeripheralManager#characteristicWriteRequested
event. - Add
PeripheralManager#descriptorReadRequested
event. - Add
PeripheralManager#descriptorWriteRequested
event. - Add
PeripheralManager#getMaximumNotifyLength
method. - Add
PeripheralManager#respondCharacteristicReadRequestWithValue
method. - Add
PeripheralManager#respondCharacteristicReadRequestWithError
method. - Add
PeripheralManager#respondCharacteristicWriteRequest
method. - Add
PeripheralManager#respondCharacteristicWriteRequestWithError
method. - Add
PeripheralManager#respondDescriptorReadRequestWithValue
method. - Add
PeripheralManager#respondDescriptorReadRequestWithError
method. - Add
PeripheralManager#respondDescriptorWriteRequest
method. - Add
PeripheralManager#respondDescriptorWriteRequestWithError
method. - Add
ConnectionState
enum. - Add
GATTService.isPrimary
field. - Add
GATTService#includedServices
field. - Add
MutableGATTCharacteristic#permissions
field. - Add
MutableGATTDescriptor#permissions
field. - Move
BluetoothLowEnergyManager#getState
toBluetoothLowEnergyManager#state
. - Move
PeripheralManager#clearServices
toPeripheralManager#removeAllServices
. - Move
CentralManger.instance
to factory constructor. - Move
PeripheralManager.instance
to factory constructor. - Remove
BluetoothLowEnergyManager#setUp
method. - Remove
GATTCharacteristicReadEventArgs
class. - Remove
GATTCharacteristicWrittenEventArgs
class. - Remove
PeripheralManager#characteristicRead
event. - Remove
PeripheralManager#characteristicWritten
event. - Remove
PeripheralManager#readCharacteristic
method. - Remove
PeripheralManager#writeCharacteristic
method. - Fix the issue that
Cannot access value of empty optional
.
5.0.7 #
Android
Fix the issue that Advertisement resolve failed withNullPointerException
5.0.6 #
Android
Fix the issue that throws when read the CCCD(Client Characteristic Config Descriptor, 0x2902).Android
iOS
Update characteristic's value when write by centrals.- Implements new Api.
5.0.5 #
Windows
Fix theCentralManager#discoverGATT
,CentralManager#readCharacteristic
andCentralManager#readDescriptor
issue caused by cache mode.
5.0.4 #
iOS
Fix issues caused by CoW.
5.0.3 #
Android
Fix the wrong blutooth low energy state caused by multi permission requests at the same time.Android
Fix the ConcurrentModificationException whenPeripheralManager#clearServices
is called.
5.0.2 #
iOS
Fix the issue that discoverGATT failed caused by CoW.
5.0.1 #
iOS
Fix the issue that completion was called duplicately caused by CoW.
5.0.0 #
- Now
CentralManager#writeCharacteristic
andPeripheralManager#writeCharacteristic
will fragment the value automatically, the maximum write length is 512 bytes. - Add implementation of
CentralManager
on windows platform. - Add
GattCharacteristicReadEventArgs
andGattCharacteristicWrittenEventArgs
. - Add
PeripheralManager#characteristicRead
andPeripheralManager#characteristicWritten
. - Add
PeripheralManager#readCharacteristic
. - Remove
CentralManager#getMaximumWriteLength
method. - Remove
PeripheralManager#getMaximumWriteLength
method. - Remove
ReadGattCharacteristicCommandEventArgs
andWriteGattCharacteristicCommandEventArgs
. - Remove
PeripheralManager#readCharacteristicCommandReceived
andPeripheralManager#writeCharacteristicCommandReceived
. - Remove
PeripheralManager#sendReadCharacteristicReply
andPeripheralManager#sendWriteCharacteristicReply
. - Move
CentralManager#state
toCentralManager#getState()
. - Move
PeripheralStateChangedEventArgs
toConnectionStateChangedEventArgs
. - Move
CentralManager#peripheralStateChanged
toCentralManager#connectionStateChanged
. - Move
GattCharacteristicValueChangedEventArgs
toGattCharacteristicNotifiedEventArgs
. - Move
CentralManager#characteristicValueChanged
toCentralManager#characteristicNotified
. - Move
CentralManager#notifyCharacteristic
toCentralManager#setCharacteristicNotifyState
. - Move
PeripheralManager#notifyCharacteristicValueChanged
toPeripheralManager#writeCharacteristic
. - Move
NotifyGattCharacteristicCommandEventArgs
toGattCharacteristicNotifyStateChangedEventArgs
. - Move
PeripheralManager#notifyCharacteristicCommandReceived
toPeripheralManager#characteristicNotifyStateChanged
.
5.0.0-dev.3 #
- Add logs on Linux platform.
5.0.0-dev.2 #
- Add default_package of windows in pubspec.yaml.
5.0.0-dev.1 #
- Now
CentralManager#writeCharacteristic
andPeripheralManager#writeCharacteristic
will fragment the value automatically, the maximum write length is 512 bytes. - Add
UUID#fromAddress
constructor. - Add
GattCharacteristicReadEventArgs
andGattCharacteristicWrittenEventArgs
. - Add
PeripheralManager#characteristicRead
andPeripheralManager#characteristicWritten
. - Add
PeripheralManager#readCharacteristic
. - Remove
CentralManager#getMaximumWriteLength
method. - Remove
PeripheralManager#getMaximumWriteLength
method. - Remove
ReadGattCharacteristicCommandEventArgs
andWriteGattCharacteristicCommandEventArgs
. - Remove
PeripheralManager#readCharacteristicCommandReceived
andPeripheralManager#writeCharacteristicCommandReceived
. - Remove
PeripheralManager#sendReadCharacteristicReply
andPeripheralManager#sendWriteCharacteristicReply
. - Move
CentralManager#state
toCentralManager#getState()
. - Move
PeripheralStateChangedEventArgs
toConnectionStateChangedEventArgs
. - Move
CentralManager#peripheralStateChanged
toCentralManager#connectionStateChanged
. - Move
GattCharacteristicValueChangedEventArgs
toGattCharacteristicNotifiedEventArgs
. - Move
CentralManager#characteristicValueChanged
toCentralManager#characteristicNotified
. - Move
CentralManager#notifyCharacteristic
toCentralManager#setCharacteristicNotifyState
. - Move
PeripheralManager#notifyCharacteristicValueChanged
toPeripheralManager#writeCharacteristic
. - Move
NotifyGattCharacteristicCommandEventArgs
toGattCharacteristicNotifyStateChangedEventArgs
. - Move
PeripheralManager#notifyCharacteristicCommandReceived
toPeripheralManager#characteristicNotifyStateChanged
.
4.0.0 #
- Remove
BluetoothLowEnergy
class. - Update
CentralManger
to extendsPlatformInterface
. - Update
PeripheralManager
to extendsPlatformInterface
. - Change some
PeripheralManager
methods' arguments to required optional arguments. - Move
AdvertiseData
class toAdvertisement
class. - Remove
BluetoothLowEnergyError
class. - Add
MyCentralManager
andMyPeripheralManager
abstract classes. - Add
LogController
interface toBluetoothLowEnergyManager
. - Fix issues.
4.0.0-dev.1 #
- Remove
BluetoothLowEnergy
class. - Update
CentralManger
to static class. - Update
PeripheralManager
to static class. - Move
AdvertiseData
class toAdvertisement
class. - Update
example
.
3.0.3 #
Android
Fix the issue android device: requestMtu issue #22
3.0.2 #
Android
iOS
Fix the issue thatgetMaximumWriteLength
is wrong and coerce the value from 20 to 512.Android
iOS
Fix the issue that the peripheral manager response is wrong.Android
Request MTU with 517 automatically.
3.0.1 #
Android
Clear cache when disconnected.Android
Fix GATT server error aftter bluetooth reopened.iOS
Fix the issue that write characteristic will never complete when write without response.iOS
Fix the issue that write characteristic will never complete after disconnected.
3.0.0 #
- Add
PeripheralManager
api. - Add
CentralManager#readRSSI
method. - Add
CentralManager.instance
api. - Add
PeripheralManager.instance
api. - Move
CentralController
toCentralManager
. - Move
CentralState
toBluetoothLowEnergyState
. - Move
CentralDiscoveredEventArgs
toDiscoveredEventArgs
. - Move
Advertisement
class toAdvertiseData
class. - Move
setUp
method fromBluetoothLowEnergy
class toBluetoothLowEnergyManger
class. - Change the type of
manufacturerSpecificData
fromMap<int, Uint8List>
toManufacturerSpecificData
. - Fix the issue that
UUID.fromString()
throw FormatException with 32 bits UUID string. - Fix known issues.
3.0.0-dev.4 #
- Move
Advertisement
class toAdvertiseData
class. - Fix known issues.
3.0.0-dev.3 #
- Fix the issue that
UUID.fromString()
throw FormatException with 32 bits UUID string. - Change the type of
manufacturerSpecificData
fromMap<int, Uint8List>
toManufacturerSpecificData
.
3.0.0-dev.2 #
- Move
setUp
method fromBluetoothLowEnergy
class toBluetoothLowEnergyManger
class. - Add
CentralManager.instance
api. - Add
PeripheralManager.instance
api.
3.0.0-dev.1 #
- Add
PeripheralManager
api. - Add
CentralManager#readRSSI
method. - Move
CentralController
toCentralManager
. - Move
CentralState
toBluetoothLowEnergyState
. - Move
CentralDiscoveredEventArgs
toDiscoveredEventArgs
.
2.2.1 #
Android
Fix the issue thatCentralController#getMaximumWriteLength
may throw.
2.2.0 #
- Add
CentralController#getMaximumWriteLength
method.
2.0.3 #
Android
Migrate to Android 13.Android
Fix the issuce that receive wrong values caused by unsafe memory, see https://developer.android.com/reference/android/bluetooth/BluetoothGattCallback#onCharacteristicChanged(android.bluetooth.BluetoothGatt,%20android.bluetooth.BluetoothGattCharacteristic)
2.0.2 #
- Combine iOS and macOS projects.
- Optimize project structure.
2.0.1 #
- Fix the issue that GATTs is cleared after peripheral disconnected on iOS and macOS.
- Fix the issue that create UUID form peripheral's address failed on Linux.
- Fix the issue that instance match failed on Linux.
2.0.0 #
- Rewrite the whole project with federated plugins.
- Support macOS and Linux.
1.1.0 #
- Fix the crash by onMtuChanged called multi-times on Android.
- Fix the finalizer doesn't work issue.
- Make some break changes.
1.0.0 #
- Upgrade to flutter 3.x.
- Rewrite the whole project with pigeon.
0.1.0 #
- Add implementations on iOS.
- Combine available and state for Bluetooth.
- Add connectable for Discovery.
- Add maximumWriteLength for GATT.
0.0.2 #
- Fix connect blocked when bluetooth closed.
- Fix wrong repository url.
- Move all example files to main.dart.
0.0.1 #
- Add central APIs.
- Add implementations on Android.
- Add example.
- Add test.