Files
bluetooth_low_energy/bluetooth_low_energy_platform_interface/CHANGELOG.md
iAMD 87fe3e2447 feat: 5.0.0 (#35)
* draft: 临时提交

* feat: 实现扫描功能

* fix: 优化广播逻辑

* feat: 添加协程方法

* fix: 修改宏定义

* draft: 临时提交

* feat: 调整接口

* fix: 修改版本号

* feat: 4.1.1

* draft: 临时提交

* feat: 5.0.0-dev.2

* fix: 修复版本号错误

* draft: 临时提交

* fix: 修复连接断开异常

* fix: 修复问题

* fix: 优化代码

* fix:  优化 short UUID 格式化逻辑

* fix: 尝试实现 read_rssi 接口,当前此接口不可用,会报异常

* feat: 删除 getMaximumWriteLength 方法

* fix: 更新 CHANGELOG.md

* feat: 5.0.0-dev.1

* fix: 更新依赖项

* feat: linux-5.0.0-dev.1

* fix: 更新 CHANGELOG.md

* fix: 开始搜索设备时清空设备列表

* fix: 开始扫描时清空设备列表

* feat: 5.0.0-dev.2

* fix: 优化 MyGattService 和 MyGattCharacteristic

* feat: 更新 interface 版本 -> 5.0.0-dev.4

* feat: 更新 interface 版本 -> 5.0.0-dev.4

* feat: 实现 flutter 部分 5.0.0

* fix: 移除 maximumWriteLength

* fix: 移除 rssi

* feat: 5.0.0-dev.1

* feat: 5.0.0-dev.2

* fix: 更新依赖项

* fix: 5.0.0-dev.4

* fix: 更新依赖项

* draft: 临时提交

* feat: 5.0.0-dev.5

* draft: 删除 MyCentralManager 和 MyPeripheralManager

* fix: 更新依赖项

* fix: 更新依赖项

* feat: 适配新接口

* feat: 5.0.0-dev.6

* draft: 临时提交

* feat: 5.0.0-dev.7

* fix: 修改版本号

* feat: 5.0.0-dev.8

* feat: 5.0.0-dev.9

* fix: 修复 trimGATT 错误

* feat: 5.0.0-dev.6

* feat: 5.0.0-dev.3

* feat: 5.0.0-dev.4

* fix: 更新 pubspec.lock

* feat: 5.0.0-dev.7

* feat: 5.0.0-dev.3

* fix: balabala

* fix: balabala

* draft: 5.0.0-dev.1

* fix: trim GATT when call the `writeCharacteristic` method.

* fix: make difference of `trim` and `fragment`.

* feat: 5.0.0-dev.1

* feat: 5.0.0-dev.1

* feat: 优化示例程序

* fix: 更新 README.md

* fix: 修复插件引用

* draft: XXXX

* feat: 增加调试信息

* fix: 更新 pubspec.lock

* feat: 5.0.0-dev.4

* feat: 5.0.0-dev.3

* feat: 5.0.0

* feat: 5.0.0

* feat: 5.0.0

* feat: 5.0.0

* feat: 5.0.0

* feat: 5.0.0
2023-12-31 00:53:48 +08:00

8.4 KiB

5.0.0

  • Now CentralManager#writeCharacteristic and PeripheralManager#writeCharacteristic will fragment the value automatically, the maximum write length is 512 bytes.
  • Add UUID#fromAddress constructor.
  • Add GattCharacteristicReadEventArgs and GattCharacteristicWrittenEventArgs.
  • Add PeripheralManager#characteristicRead and PeripheralManager#characteristicWritten.
  • Add PeripheralManager#readCharacteristic.
  • Remove CentralManager#getMaximumWriteLength method.
  • Remove PeripheralManager#getMaximumWriteLength method.
  • Remove ReadGattCharacteristicCommandEventArgs and WriteGattCharacteristicCommandEventArgs.
  • Remove PeripheralManager#readCharacteristicCommandReceived and PeripheralManager#writeCharacteristicCommandReceived.
  • Remove PeripheralManager#sendReadCharacteristicReply and PeripheralManager#sendWriteCharacteristicReply.
  • Move CentralManager#state to CentralManager#getState().
  • Move PeripheralStateChangedEventArgs to ConnectionStateChangedEventArgs.
  • Move CentralManager#peripheralStateChanged to CentralManager#connectionStateChanged.
  • Move GattCharacteristicValueChangedEventArgs to GattCharacteristicNotifiedEventArgs.
  • Move CentralManager#characteristicValueChanged to CentralManager#characteristicNotified.
  • Move CentralManager#notifyCharacteristic to CentralManager#setCharacteristicNotifyState.
  • Move PeripheralManager#notifyCharacteristicValueChanged to PeripheralManager#writeCharacteristic.
  • Move NotifyGattCharacteristicCommandEventArgs to GattCharacteristicNotifyStateChangedEventArgs.
  • Move PeripheralManager#notifyCharacteristicCommandReceived to PeripheralManager#characteristicNotifyStateChanged.

5.0.0-dev.10

  • Fix Uint8List#trimGATT throws when the value is not exceeded 512 bytes.

5.0.0-dev.9

  • Add PeripheralManager#characteristicRead.

5.0.0-dev.8

  • Add PeripheralManager#readCharacteristic.
  • Move PeripheralManager#notifyCharacteristic to PeripheralManager#writeCharacteristic.

5.0.0-dev.7

  • Remove GattCharacteristicReadEventArgs.
  • Remove PeripheralManager#characteristicRead.

5.0.0-dev.6

  • Remove the final modifier form MyGattCharacteristic#value and MyGattDescriptor#value and trim by 512 bytes.

5.0.0-dev.5

  • Move CentralManager#state to CentralManager#getState().
  • Move PeripheralStateChangedEventArgs to ConnectionStateChangedEventArgs.
  • Move GattCharacteristicValueChangedEventArgs to GattCharacteristicNotifiedEventArgs.
  • Move CentralManager#peripheralStateChanged to CentralManager#connectionStateChanged.
  • Move CentralManager#characteristicValueChanged to CentralManager#characteristicNotified.
  • Move CentralManager#notifyCharacteristic to CentralManager#setCharacteristicNotifyState.
  • Remove ReadGattCharacteristicCommandEventArgs and WriteGattCharacteristicCommandEventArgs.
  • Move NotifyGattCharacteristicCommandEventArgs to GattCharacteristicNotifyStateChangedEventArgs.
  • Remove PeripheralManager#readCharacteristicCommandReceived and PeripheralManager#writeCharacteristicCommandReceived.
  • Add PeripheralManager#characteristicRead and PeripheralManager#characteristicWritten.
  • Move PeripheralManager#notifyCharacteristicCommandReceived to PeripheralManager#characteristicNotifyStateChanged.
  • Remove PeripheralManager#sendReadCharacteristicReply and PeripheralManager#sendWriteCharacteristicReply.
  • Add GattCharacteristicReadEventArgs and GattCharacteristicWrittenEventArgs.
  • Move PeripheralManager#notifyCharacteristicValueChanged to PeripheralManager#notifyCharacteristic.
  • Remove MyCentralManager and MyPeripheralManager.

5.0.0-dev.4

  • Optimize MyGattService and MyGattCharacteristic.

5.0.0-dev.3

  • Remove CentralManager#getMaximumWriteLength method.
  • Remove PeripheralManager#getMaximumWriteLength method.

5.0.0-dev.2

  • Add UUID#fromAddress constructor.
  • Override hashCode and == of MyCentral and MyPeripheral.

5.0.0-dev.1

  • Add MyBluetoothLowEnergyPeer and MyGattAttribute.
  • Remove MyObject base class.
  • Use LoggerProvider instead of custom logger.

4.0.0

  • Remove BluetoothLowEnergy class.
  • Update CentralManger to extends PlatformInterface.
  • Update PeripheralManager to extends PlatformInterface.
  • Update README.md.
  • Change some PeripheralManager methods' arguments to required optional arguments.
  • Move AdvertiseData class to Advertisement class.
  • Remove BluetoothLowEnergyError class.
  • Add MyCentralManager and MyPeripheralManager abstract classes.
  • Add LogController interface to BluetoothLowEnergyManager.
  • Fix issues.

4.0.0-dev.12

  • Update log_service dependency.

4.0.0-dev.11

  • Use log_service instead of logging to simplify project structure.

4.0.0-dev.10

  • Fix the issue that messages were logged twice and other logger's messages were also logged by this logger.

4.0.0-dev.9

  • Remove Logger, use logging package instead.
  • Add SetUp interface class and MySetUp mixin.
  • Add LoggerController interface class and MyLoggerController mixin.
  • Update CentralManager to implements SetUp and LoggerController.
  • Update PeripheralManager to implements SetUp and LoggerController.

4.0.0-dev.8

  • Remove BluetoothLowEnergyError, use PlatformException instead.
  • Add MyCentralManager and MyPeripheralManager abstract classes.
  • Optimize project's structure.

4.0.0-dev.7

  • Remove Logger.level filed, as the level of logging package is a global option, which can be changed by anyone.

4.0.0-dev.6

  • Move AdvertiseData class to Advertisement class.

4.0.0-dev.5

  • Fix export error.

4.0.0-dev.4

  • Optimize project's structure.

4.0.0-dev.3

  • Change some PeripheralManager methods' arguments to required optional arguments.

4.0.0-dev.2

  • Add Logger class.

4.0.0-dev.1

  • Remove BluetoothLowEnergy class.
  • Update CentralManger to extends PlatformInterface.
  • Update PeripheralManager to extends PlatformInterface.
  • Update README.md.

3.0.0

  • Add PeripheralManager api.
  • Add CentralManager#readRSSI method.
  • Add CentralManager.instance api.
  • Add PeripheralManager.instance api.
  • Move CentralController to CentralManager.
  • Move CentralState to BluetoothLowEnergyState.
  • Move CentralDiscoveredEventArgs to DiscoveredEventArgs.
  • Move Advertisement class to AdvertiseData class.
  • Move setUp method from BluetoothLowEnergy class to BluetoothLowEnergyManger class.
  • Change the type of manufacturerSpecificData from Map<int, Uint8List> to ManufacturerSpecificData.
  • Fix the issue that UUID.fromString() throw FormatException with 32 bits UUID string.
  • Fix known issues.

3.0.0-dev.5

  • Move Advertisement class to AdvertiseData class.

3.0.0-dev.4

  • Fix issues.

3.0.0-dev.3

3.0.0-dev.2

  • Move setUp method from BluetoothLowEnergy class to BluetoothLowEnergyManger class.
  • Add CentralManager.instance api.
  • Add PeripheralManager.instance api.

3.0.0-dev.1

  • Add PeripheralManager api.
  • Add CentralManager#readRSSI method.
  • Move CentralController to CentralManager.
  • Move CentralState to BluetoothLowEnergyState.
  • Move CentralDiscoveredEventArgs to DiscoveredEventArgs.

2.2.0

  • Add GattCharacteristicWriteType argument to CentralController#getMaximumWriteLength method.

2.1.0

  • Bump version.

2.0.5

  • Optimize project structure.

2.0.4

  • Add CentralController#getMaximumWriteLength method.

2.0.3

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.