bluetooth_low_energy_android 6.1.0
bluetooth_low_energy_android: ^6.1.0 copied to clipboard
Android implementation of the bluetooth_low_energy plugin.
6.1.0 #
- Upgrade flutter SDK to 3.29.3.
- Upgrade dependencies.
- Remove location usage when target Android 12 or higher.
6.0.3 #
6.0.2 #
- Fix the warning issue.
6.0.1 #
- Fix the issue that advertisement name is wrong when advertising.
6.0.0 #
- Add
serviceUUIDsargument toCentralManager#startDiscoverymethod. - Add
CentralManager#requestMTUmethod. - Add
CentralManager#retrieveConnectedPeripheralsmethod. - Move
BluetoothLowEnergyManager#getStatetoBluetoothLowEnergyManager#state. - Move
CentralManger.instanceto factory constructor. - Move
PeripheralManager.instanceto factory constructor. - Remove
BluetoothLowEnergyManager#setUpmethod. - Add
CentralManager#mtuChangedevent. - Add
PeripheralManager#mtuChangedevent. - Add
BluetoothLowEnergyManager.authorize()method. - Add
BluetoothLowEnergyManager.showAppSettings()method. - Rewrite example with MVVM.
- Fix known issues.
6.0.0-dev.6 #
- Fix known issues.
6.0.0-dev.5 #
- Rewrite example with MVVM.
- Fix known issues.
6.0.0-dev.4 #
- Implement new APIs.
6.0.0-dev.3 #
- Move organizaioin.
6.0.0-dev.2 #
- Implement new APIs.
6.0.0-dev.1 #
- Add
CentralManager#mtuChangedevent. - Add
PeripheralManager#mtuChangedevent. - Add
BluetoothLowEnergyManager.authorize()method. - Add
BluetoothLowEnergyManager.showAppSettings()method. - Add modifiers to all classes.
- Use new capitalization rules.
- Make it possible to change the
logLevelbeforeinitialize().
6.0.0-dev.0 #
- Add
serviceUUIDsargument toCentralManager#startDiscoverymethod. - Add
CentralManager#requestMTUmethod. - Add
CentralManager#retrieveConnectedPeripheralsmethod. - Move
BluetoothLowEnergyManager#getStatetoBluetoothLowEnergyManager#state. - Move
CentralManger.instanceto factory constructor. - Move
PeripheralManager.instanceto factory constructor. - Remove
BluetoothLowEnergyManager#setUpmethod.
5.0.5 #
- Fix the issue that Advertisement resolve failed with
NullPointerException
5.0.4 #
- Change flutter minimum version to 3.0.0.
5.0.3 #
- Fix the issue that throws when read the CCCD(Client Characteristic Config Descriptor, 0x2902).
- Update characteristic's value when write by centrals.
- Implements new Api.
5.0.2 #
- Fix the ConcurrentModificationException when
PeripheralManager#clearServicesis called. - Fix the
CentralManager#setUpandPeripheralManager#setUpwere blocked.
5.0.1 #
- Fix the wrong blutooth low energy state caused by multi permission requests at the same time.
5.0.0 #
- 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.
5.0.0-dev.4 #
- Fix the issue that
PeripheralMananger#startAdvertisingthrows after powered off.\ - Optimize project structure.
5.0.0-dev.3 #
- Implements new Api.
5.0.0-dev.2 #
- Optimize example.
- Add event logs.
- Fix the issue that PeripheralManager's service duplicated after hot reload.
- Fix the issue that
PeripheralManager#notifyCharacteristicChangedlost data when value is larger then the MTU size. - Optimize instances' retrieve speed.
- Update dependency.
5.0.0-dev.1 #
- Implement the
5.0.0api. - Optimize example.
- Remove
CentralManager#getMaximumWriteLengthmethod. - Remove
PeripheralManager#getMaximumWriteLengthmethod.
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.3 #
- Optimize project structure.
4.0.0-dev.2 #
- Optimize the import method of the
example.
4.0.0-dev.1 #
- Remove
BluetoothLowEnergyclass. - Update
CentralMangerto extendsPlatformInterface. - Update
PeripheralManagerto extendsPlatformInterface. - Move
AdvertiseDataclass toAdvertisementclass. - Remove
loggingdependency. - Update
example.
3.0.4 #
- Fix the issue android device: requestMtu issue #22
3.0.3 #
- Fix the issue that
getMaximumWriteLengthis wrong and coerce the value from 20 to 512.
3.0.2 #
- Request MTU with 517 automatically.
- Fix the issue taht
CentralManager#getMaximumWriteLengthis wrong when write with response and coerce the value from 20 to 512. - Fix the issue that the GATT server response is wrong.
3.0.1 #
- Clear cache when disconnected.
- Fix GATT server error aftter bluetooth reopened.
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.6 #
- Add default
CCCDto GATT characteristic for notify and indicate. - Fix the issue that callbacks must run on ui thread.
- Change requested MTU from 512 to 517 when get the maximum write length of characteristic.
3.0.0-dev.5 #
- Fix the issue that the
BLUETOOTH_ADVERTISEpermission is not requested.
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 #
- Implement new api.
2.2.1 #
- Fix the issue that
CentralController#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.