layrz_ble 1.4.2
layrz_ble: ^1.4.2 copied to clipboard
A Flutter library for cross-platform Bluetooth Low Energy (BLE) communication, supporting Android, iOS, macOS, Windows, Linux, and web.
Changelog #
1.4.2 #
- Fixed Windows never reporting peripherals that advertise with Bluetooth 5 extended advertising PDUs:
BluetoothLEAdvertisementWatcheronly delivers legacy advertisements unlessAllowExtendedAdvertisementsis set, so those devices were dropped in the native layer and never reached Dart — no scan result, no error, as if they were not there. Android already opted in viasetLegacy(false)/PHY_LE_ALL_SUPPORTEDand CoreBluetooth needs no opt-in, leaving Windows as the only affected platform. - The opt-in is guarded: on adapters or Windows builds without extended advertising support the setter throws, and the watcher falls back to legacy-only scanning as before. Legacy (Bluetooth 4.x) discovery is unaffected either way, since the extended scanner also covers the primary advertising channels.
IsExtendedAdvertisingSupported()was already queried and logged inGetRadiosAsync()but never wired to the watcher; that detection is now meaningful.
1.4.1 #
- Fixed Android BLE scanning being significantly slower than other apps (e.g. nRF Connect) at discovering devices:
SCAN_MODE_LOW_LATENCYwas left commented out incomposeSettings(), leaving scans on the defaultSCAN_MODE_LOW_POWERduty-cycled mode. - Fixed Android scans getting silently stuck:
ScanCallback.onScanFailedwas never overridden, so an OS-level scan failure (throttling,SCAN_FAILED_OUT_OF_HARDWARE_RESOURCES, etc.) left the plugin believing it was still scanning forever, with no way for the Dart side to recover.startScan()/stopScan()on Android now also emitonScanStarted/onScanStoppedon their normal success paths for full scan lifecycle visibility from Dart.
1.4.0 #
- Upgraded the Android build toolchain to Gradle
9.1, Android Gradle Plugin9.0.1, and Kotlin2.3.20. - Replaced the deprecated
kotlinOptionsblock with the modernkotlin { compilerOptions }DSL across the plugin and example app. - Bumped the
bluezdependency to^0.8.3.
1.3.7 #
- Re-generated android plugin files to be compatible with the latest version of Flutter.
1.3.5 #
- update to 1.3.5
- Force to use meta 1.17.0
1.3.4 #
- Add
metain pubspect.yaml
1.3.3 #
- Add in
BleStatusisEnabled - Add
openBluetoothSettingsto open Bluetooth settings in Macos, iOs, android, Windows
1.3.2 #
- Reduced # of logs on Windows implementation
- Standarized
toUppercaseon all UUIDs and Mac addresses on Windows implementation
1.3.1 #
- Some fixes on Windows implementation
1.3.0 #
- Stable release of the 1.3.0 version.
1.3.0-rc.3 #
- Fixed an issue with the service data parser on Linux
1.3.0-rc.2 #
- Added
platformson thepubspec.yamlto prevent issues withpub.dev
1.3.0-rc.1 #
- Fixes related to disconnection on iOS and macOS.
- Testing phase started
1.3.0-prerelease.1 #
- Migrated the plugin to use
pigeoninstead of manualMethodChannelimplementation.
1.3.0-beta.6 #
- Fixed issues with scan of Bluetooth Core 5.0 spec on Android.
1.3.0-beta.5 #
- Removed timeout
1.3.0-beta.4 #
- Some fixes on Windows implementations
1.3.0-beta.3 #
- Downgraded sdk to preserve legacy formatting.
- Added
getStatusesto get the status of the connection. - Added getters of
isAdvertisingandisScanningto get the current status. - Reviewed Web and Linux based on the recent changes.
1.3.0-beta.2 #
- Added multi-connection support on Android. Pending on other platforms.
1.3.0-beta.1 #
- Applied fixes related to the return information of
checkCapabilitieson darwin (iOS and macOS).
1.3.0-alpha.6 #
- Some fixes on Android
- Tested the implementation on Windows, and does not work due to some unknown restrictions.
1.3.0-alpha.5 #
- Some fixes related with the advertisement on Android.
1.3.0-alpha.4 #
- Solved issues related to the advertisement stop and start, before throws a error 3 (Already advertising) when you try to start the advertisement after stopping it. Now, it will stop and start the advertisement without any error.
1.3.0-alpha.3 #
- Fixes on notifications on Android.
1.3.0-alpha.2 #
- Updated README.md
1.3.0-alpha.1 #
- Added
startAdvertise(),stopAdvertise(),respondWriteRequest()andrespondReadRequest()methods on Android to support Advertisement using GATT server.
1.2.3 #
- Segmented MethodChannel's in different channels to prevent overloading.
- Fixed an issue on Android where the device would not disconnect properly. Now, when a disconnection is detected, the gatt will be closed.
- Unified iOS and macOS to use the same codebase (darwin).
1.2.2 #
- Added try/catch around the read and write characteristic functions to prevent crashes when the device is disconnected
1.2.1 #
- Added txPower to the data that can be received from the device
1.2.0 #
- Updated all platforms to support multiple manufacturer data
1.1.3 #
- Removed parser things from this library
1.1.2 #
- Added
BleCondition,BleConversion,BleParser,BleParserConfig,BleParserProperty,BleServiceData,BleOperation,BleParserSourceandBleWatchto the export.
1.1.1 #
- Added Advertisement data parsers to the main class.
1.1.0 #
- Changed service data schema
1.0.1 #
- Added auto-discovery of the servcices and characteristics of the device
1.0.0 #
- Initial release