* Improve example app
- Introduced utility functions for sorting BLE services and filtering characteristics based on properties.
- Updated the peripheral detail page to support reading all characteristics and improved value formatting for better readability.
- Added navigation functionality for adjacent characteristics and integrated property filters in the services list widget.
- Enhanced the services side widget to manage selected properties and provide a clearer UI for service interactions.
- Implemented copy functionality for logs and improved overall user experience in the peripheral details section.
* Remove expandable
* Automatically start scanning on launch
* Show loading indicator for discovering services
* Decrease the height of TextFormField
* Add service-data in advertisements
* Fix windows serviceData parsing
* Resolve Ai comments
* Resolve Ai comments and validate service data
* Cleanup and Update changelog
* Add autoConnect support
* Enhance autoConnect functionality for Bluetooth devices
- Added support for managing a set of auto-connect devices in both Android and iOS implementations.
- Updated connection and disconnection logic to handle auto-reconnect scenarios appropriately.
- Improved cleanup processes to prevent unwanted reconnections when devices are manually disconnected.
* Refactor connection button and add auto-reconnect toggle
- Updated the connection button layout for better UI consistency.
- Introduced an auto-reconnect toggle to manage automatic reconnections when devices become available.
- Enhanced connection and disconnection logic to respect the auto-connect setting.
* Update version to 1.2.0 and add CHANGELOG for new features
- Bumped version to 1.2.0.
- Added CHANGELOG.md detailing new features including support for `autoConnect` and UI updates for automatic reconnection.
* Improve readme
* Refactor variable naming for clarity in Bluetooth connection logic
- Changed variable name from `isAutoConnect` to `shouldAutoConnect` for better readability and understanding of its purpose in the connection state handling.
* Refactor connection handling in UniversalBlePlugin
- Simplified connection logic by always cleaning up internal state before sending connection change callbacks.
- Ensured GATT resources are only closed when autoConnect is disabled, allowing for better management of Bluetooth connections.
* Refactor disconnection handling in UniversalBlePlugin
- Introduced a new method `handlePeripheralDisconnection` to encapsulate disconnection logic, improving code readability and maintainability.
- Updated the `centralManager` methods to utilize the new disconnection handler, ensuring consistent behavior across connection state changes.
* Update darwin/Classes/UniversalBlePlugin.swift
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: Foti Dim <fotios.dimanidis@a2zebra.de>
Co-authored-by: Navideck Labs <130186950+navidecklabs@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Improve example app ui
* Store favorite services in local storage
* Use Text instead of SelectableText
* Improve colors
* Fix flutter analyzer issues
* Revert example app minimum sdk requirement
* Implement hasPermission api and improve ui flow
* More ui improvements
* Improve ScannedItem ui
* Improve control ui
* Change color theme to blue
* Minor improvements wip
* improve responsive ui and flow
* More improvements
* More improvements
* Update Mac podfile
* Fix home page scroll view
* Update app and package name
* Revert changelog
* Resolve Ai comments
---------
Co-authored-by: Foti Dim <foti@navideck.com>
* Implement requestPermission api
* Update example ios podfile
* Update example windows dependencies
* Update Readme and Changelog
* Resolve Ai Comments
* Improve bluetooth permission handling
* Update Readme
* Improve readme
---------
Co-authored-by: Foti Dim <foti@navideck.com>
* Wait for writeWithoutResponse request completion on Android
* Wait for writeWithoutResponse request completion on Darwin
* Add WriteWithoutResponse button in example app
* Update changelog and bump version
* Apply suggestions from code review
Co-authored-by: Foti Dim <foti@navideck.com>
---------
Co-authored-by: Foti Dim <foti@navideck.com>
* Add high-level api extensions for BleDevice and Characteristic
* Add doc comments and move few files to utils
* Add advance documentation
* Make the high level APIs the new default in the readme
* More readme cleanups
* Add pair api, improve notifications apis and deprecate writeValue
* Use highLevel apis in Example
* Rename HighLevel isPaired api to hasPairing api
* Update Readme
* Rename low level readValue api to read and update Readme
* Update UniversalBle to use new apis instead of deprecated internally
* Split queueCommand and queueCommandWithoutTimeout
* Split setNotifiable into subscribeNotifications, subscribeIndications and unsubscribe
* Fix web imports
* Update changelog
* Switch back to isPaired
Co-authored-by: Rohit Sangwan <rohitsangwan647@gmail.com>
* Fix BleDevice toString method
* Switch back to isPaired
* Change peripheral to device
* Rename cached to preferCached
* Remove preferCached from discoverServices()
* Update changelog
* Use cached services
* Add ///
* Reverse withoutResponse to withResponse to avoid negation
* Link to low level API
* Move connectionState to public readme
* Rename disableSubscriptions to unsubscribe
* Improve documentation
* Fix getService cache
* Add NotFoundException
---------
Co-authored-by: Foti Dim <foti@navideck.com>
* Enhance getSystemDevice API on macOS with Broader Default Services Filter
* Update docs
* Update darwin/Classes/UniversalBlePlugin.swift
Co-authored-by: Foti Dim <foti@navideck.com>
* Reorder fields
* Use ScanFilter ui for getting system devices
---------
Co-authored-by: Foti Dim <fdimanidis@gmail.com>
Co-authored-by: Foti Dim <foti@navideck.com>
* Cleanup connection
* Reverse search list
* Bump version
* Fix Android serviceUuids in scanResults
* Fix typo
* Improve cleanup on apple
* Improve Apple reconnection and service discovery
* Persist long scan result name on Windows
Co-authored-by: navidecklabs <navidecklabs@users.noreply.github.com>
* Update changelog
---------
Co-authored-by: Rohit Sangwan <rohitsangwan647@gmail.com>
Co-authored-by: navidecklabs <navidecklabs@users.noreply.github.com>