bluetooth_low_energy 6.0.0
bluetooth_low_energy: ^6.0.0 copied to clipboard
A Flutter plugin for controlling the bluetooth low energy, supports central and peripheral roles.
6.0.0 #
- Add
CentralManager#retrieveConnectedPeripheralsmethod. - Add optional
serviceUUIDsargument to theCentralManager#startDiscoverymethod. - Add
CentralManager#mtuChangedevent. - Add
PeripheralManager#mtuChangedevent. - Add
BluetoothLowEnergyManager#authorizemethod. - Add
BluetoothLowEnergyManager#showAppSettingsmethod. - Add
CentralManager#requestMTUmethod. - Add
CentralManager#getMaximumWriteLengthmethod. - Add
PeripheralManager#connectionStateChangedevent. - Add
PeripheralManager#characteristicReadRequestedevent. - Add
PeripheralManager#characteristicWriteRequestedevent. - Add
PeripheralManager#descriptorReadRequestedevent. - Add
PeripheralManager#descriptorWriteRequestedevent. - Add
PeripheralManager#getMaximumNotifyLengthmethod. - Add
PeripheralManager#respondReadRequestWithValuemethod. - Add
PeripheralManager#respondReadRequestWithErrormethod. - Add
PeripheralManager#respondWriteRequestmethod. - Add
PeripheralManager#respondWriteRequestWithErrormethod. - Add
ConnectionStateenum. - Add
GATTService.isPrimaryfield. - Add
GATTService#includedServicesfield. - Add
MutableGATTCharacteristic#permissionsfield. - Add
MutableGATTDescriptor#permissionsfield. - Add
inttype toUUID#fromAddress. - Move
CentralManger.instanceto factory constructor. - Move
PeripheralManager.instanceto factory constructor. - Move the type of
Advertisement#manufacturerSpecificDatatoList<ManufacturerSpecificData>. - Move
BluetoothLowEnergyManager#getStatetoBluetoothLowEnergyManager#state. - Move
PeripheralManager#clearServicestoPeripheralManager#removeAllServices. - Remove
BluetoothLowEnergyManager#setUpmethod. - Remove
PeripheralManager#characteristicReadevent. - Remove
PeripheralManager#characteristicWrittenevent. - Remove
PeripheralManager#readCharacteristicmethod. - Remove
PeripheralManager#writeCharacteristicmethod. - Fix the issue that
Cannot access value of empty optional. - Fix known issues.
- Rewrite example with MVVM.
6.0.0-dev.3 #
- Implement
CentralMananger#showAppSettingson iOS. - Implement
PeripheralManager#showAppSettingson iOS. - Fix known issues.
6.0.0-dev.2 #
- Add
inttype toUUID#fromAddress. - Move the type of
Advertisement#manufacturerSpecificDatatoList<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#retrieveConnectedPeripheralsmethod. - Add optional
serviceUUIDsargument to theCentralManager#startDiscoverymethod. - Add
CentralManager#mtuChangedevent. - Add
PeripheralManager#mtuChangedevent. - Add
BluetoothLowEnergyManager#authorizemethod. - Add
BluetoothLowEnergyManager#showAppSettingsmethod. - Add
CentralManager#requestMTUmethod. - Add
CentralManager#getMaximumWriteLengthmethod. - Add
PeripheralManager#connectionStateChangedevent. - Add
PeripheralManager#characteristicReadRequestedevent. - Add
PeripheralManager#characteristicWriteRequestedevent. - Add
PeripheralManager#descriptorReadRequestedevent. - Add
PeripheralManager#descriptorWriteRequestedevent. - Add
PeripheralManager#getMaximumNotifyLengthmethod. - Add
PeripheralManager#respondCharacteristicReadRequestWithValuemethod. - Add
PeripheralManager#respondCharacteristicReadRequestWithErrormethod. - Add
PeripheralManager#respondCharacteristicWriteRequestmethod. - Add
PeripheralManager#respondCharacteristicWriteRequestWithErrormethod. - Add
PeripheralManager#respondDescriptorReadRequestWithValuemethod. - Add
PeripheralManager#respondDescriptorReadRequestWithErrormethod. - Add
PeripheralManager#respondDescriptorWriteRequestmethod. - Add
PeripheralManager#respondDescriptorWriteRequestWithErrormethod. - Add
ConnectionStateenum. - Add
GATTService.isPrimaryfield. - Add
GATTService#includedServicesfield. - Add
MutableGATTCharacteristic#permissionsfield. - Add
MutableGATTDescriptor#permissionsfield. - Move
BluetoothLowEnergyManager#getStatetoBluetoothLowEnergyManager#state. - Move
PeripheralManager#clearServicestoPeripheralManager#removeAllServices. - Move
CentralManger.instanceto factory constructor. - Move
PeripheralManager.instanceto factory constructor. - Remove
BluetoothLowEnergyManager#setUpmethod. - Remove
GATTCharacteristicReadEventArgsclass. - Remove
GATTCharacteristicWrittenEventArgsclass. - Remove
PeripheralManager#characteristicReadevent. - Remove
PeripheralManager#characteristicWrittenevent. - Remove
PeripheralManager#readCharacteristicmethod. - Remove
PeripheralManager#writeCharacteristicmethod. - Fix the issue that
Cannot access value of empty optional.
5.0.7 #
AndroidFix the issue that Advertisement resolve failed withNullPointerException
5.0.6 #
AndroidFix the issue that throws when read the CCCD(Client Characteristic Config Descriptor, 0x2902).AndroidiOSUpdate characteristic's value when write by centrals.- Implements new Api.
5.0.5 #
WindowsFix theCentralManager#discoverGATT,CentralManager#readCharacteristicandCentralManager#readDescriptorissue caused by cache mode.
5.0.4 #
iOSFix issues caused by CoW.
5.0.3 #
AndroidFix the wrong blutooth low energy state caused by multi permission requests at the same time.AndroidFix the ConcurrentModificationException whenPeripheralManager#clearServicesis called.
5.0.2 #
iOSFix the issue that discoverGATT failed caused by CoW.
5.0.1 #
iOSFix the issue that completion was called duplicately caused by CoW.
5.0.0 #
- Now
CentralManager#writeCharacteristicandPeripheralManager#writeCharacteristicwill fragment the value automatically, the maximum write length is 512 bytes. - Add implementation of
CentralManageron windows platform. - Add
GattCharacteristicReadEventArgsandGattCharacteristicWrittenEventArgs. - Add
PeripheralManager#characteristicReadandPeripheralManager#characteristicWritten. - Add
PeripheralManager#readCharacteristic. - Remove
CentralManager#getMaximumWriteLengthmethod. - Remove
PeripheralManager#getMaximumWriteLengthmethod. - Remove
ReadGattCharacteristicCommandEventArgsandWriteGattCharacteristicCommandEventArgs. - Remove
PeripheralManager#readCharacteristicCommandReceivedandPeripheralManager#writeCharacteristicCommandReceived. - Remove
PeripheralManager#sendReadCharacteristicReplyandPeripheralManager#sendWriteCharacteristicReply. - Move
CentralManager#statetoCentralManager#getState(). - Move
PeripheralStateChangedEventArgstoConnectionStateChangedEventArgs. - Move
CentralManager#peripheralStateChangedtoCentralManager#connectionStateChanged. - Move
GattCharacteristicValueChangedEventArgstoGattCharacteristicNotifiedEventArgs. - Move
CentralManager#characteristicValueChangedtoCentralManager#characteristicNotified. - Move
CentralManager#notifyCharacteristictoCentralManager#setCharacteristicNotifyState. - Move
PeripheralManager#notifyCharacteristicValueChangedtoPeripheralManager#writeCharacteristic. - Move
NotifyGattCharacteristicCommandEventArgstoGattCharacteristicNotifyStateChangedEventArgs. - Move
PeripheralManager#notifyCharacteristicCommandReceivedtoPeripheralManager#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#writeCharacteristicandPeripheralManager#writeCharacteristicwill fragment the value automatically, the maximum write length is 512 bytes. - Add
UUID#fromAddressconstructor. - Add
GattCharacteristicReadEventArgsandGattCharacteristicWrittenEventArgs. - Add
PeripheralManager#characteristicReadandPeripheralManager#characteristicWritten. - Add
PeripheralManager#readCharacteristic. - Remove
CentralManager#getMaximumWriteLengthmethod. - Remove
PeripheralManager#getMaximumWriteLengthmethod. - Remove
ReadGattCharacteristicCommandEventArgsandWriteGattCharacteristicCommandEventArgs. - Remove
PeripheralManager#readCharacteristicCommandReceivedandPeripheralManager#writeCharacteristicCommandReceived. - Remove
PeripheralManager#sendReadCharacteristicReplyandPeripheralManager#sendWriteCharacteristicReply. - Move
CentralManager#statetoCentralManager#getState(). - Move
PeripheralStateChangedEventArgstoConnectionStateChangedEventArgs. - Move
CentralManager#peripheralStateChangedtoCentralManager#connectionStateChanged. - Move
GattCharacteristicValueChangedEventArgstoGattCharacteristicNotifiedEventArgs. - Move
CentralManager#characteristicValueChangedtoCentralManager#characteristicNotified. - Move
CentralManager#notifyCharacteristictoCentralManager#setCharacteristicNotifyState. - Move
PeripheralManager#notifyCharacteristicValueChangedtoPeripheralManager#writeCharacteristic. - Move
NotifyGattCharacteristicCommandEventArgstoGattCharacteristicNotifyStateChangedEventArgs. - Move
PeripheralManager#notifyCharacteristicCommandReceivedtoPeripheralManager#characteristicNotifyStateChanged.
4.0.0 #
- Remove
BluetoothLowEnergyclass. - Update
CentralMangerto extendsPlatformInterface. - Update
PeripheralManagerto extendsPlatformInterface. - Change some
PeripheralManagermethods' arguments to required optional arguments. - Move
AdvertiseDataclass toAdvertisementclass. - Remove
BluetoothLowEnergyErrorclass. - Add
MyCentralManagerandMyPeripheralManagerabstract classes. - Add
LogControllerinterface toBluetoothLowEnergyManager. - Fix issues.
4.0.0-dev.1 #
- Remove
BluetoothLowEnergyclass. - Update
CentralMangerto static class. - Update
PeripheralManagerto static class. - Move
AdvertiseDataclass toAdvertisementclass. - Update
example.
3.0.3 #
AndroidFix the issue android device: requestMtu issue #22
3.0.2 #
AndroidiOSFix the issue thatgetMaximumWriteLengthis wrong and coerce the value from 20 to 512.AndroidiOSFix the issue that the peripheral manager response is wrong.AndroidRequest MTU with 517 automatically.
3.0.1 #
AndroidClear cache when disconnected.AndroidFix GATT server error aftter bluetooth reopened.iOSFix the issue that write characteristic will never complete when write without response.iOSFix the issue that write characteristic will never complete after disconnected.
3.0.0 #
- Add
PeripheralManagerapi. - Add
CentralManager#readRSSImethod. - Add
CentralManager.instanceapi. - Add
PeripheralManager.instanceapi. - Move
CentralControllertoCentralManager. - Move
CentralStatetoBluetoothLowEnergyState. - Move
CentralDiscoveredEventArgstoDiscoveredEventArgs. - Move
Advertisementclass toAdvertiseDataclass. - Move
setUpmethod fromBluetoothLowEnergyclass toBluetoothLowEnergyMangerclass. - Change the type of
manufacturerSpecificDatafromMap<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
Advertisementclass toAdvertiseDataclass. - 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
manufacturerSpecificDatafromMap<int, Uint8List>toManufacturerSpecificData.
3.0.0-dev.2 #
- Move
setUpmethod fromBluetoothLowEnergyclass toBluetoothLowEnergyMangerclass. - Add
CentralManager.instanceapi. - Add
PeripheralManager.instanceapi.
3.0.0-dev.1 #
- Add
PeripheralManagerapi. - Add
CentralManager#readRSSImethod. - Move
CentralControllertoCentralManager. - Move
CentralStatetoBluetoothLowEnergyState. - Move
CentralDiscoveredEventArgstoDiscoveredEventArgs.
2.2.1 #
AndroidFix the issue thatCentralController#getMaximumWriteLengthmay throw.
2.2.0 #
- Add
CentralController#getMaximumWriteLengthmethod.
2.0.3 #
AndroidMigrate to Android 13.AndroidFix 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.