228 Commits

Author SHA1 Message Date
Rohit Sangwan af3dda0fe4 Improve example app callbacks 2025-05-27 16:48:50 +05:30
Foti Dim 744094ebc5 Update pubspec.yaml 2025-05-26 13:59:27 +02:00
Foti Dim cd4e45b4ec Add app showcase in Readme 2025-05-16 19:42:04 +02:00
Foti Dim fec3c21918 Update changelog 2025-05-08 12:54:16 +02:00
Rohit Sangwan 8069ff52d5 Implement streams to get updates (#155)
* Implement streams to get updates

* Resolve comments

* Update Readme

* Apply suggestions from code review

Co-authored-by: Foti Dim <foti@navideck.com>

* Update Changelog

* Update Readme

---------

Co-authored-by: Foti Dim <foti@navideck.com>
2025-05-08 12:52:18 +02:00
tfroidcoeur 3194b0ad49 Fix: linux: getSystemDevices (#154)
Make sure getSystemDevices connects the bluez client first.
This ensures that the list of devices is correctly populated.

Signed-off-by: Tim Froidcoeur <tim.froidcoeur@comate.be>
Co-authored-by: Tim Froidcoeur <tim.froidcoeur@comate.be>
2025-04-26 22:02:49 +02:00
Foti Dim f26951834d Improve pairing section in readme 2025-03-22 09:44:08 +01:00
Foti Dim 334bc1c680 Improve docs for isPaired 2025-03-19 22:17:06 +01:00
Foti Dim b15e4f8705 Update changelog 2025-03-19 11:28:36 +01:00
Rohit Sangwan 3ce064d20f Refactor native windows (#148)
* Error on windows scan

* Implement thread safe cache handling

* Fix start scan method

* Update windows/src/universal_ble_thread_safe.h

Co-authored-by: Foti Dim <foti@navideck.com>

* Refactor native Windows

* Fix guid parsing

* Fix FlutterError on Windows

* Fix Merge Conflicts

* Fix char subscription and store in characteristic struct instead of global map

---------

Co-authored-by: Foti Dim <fdimanidis@gmail.com>
Co-authored-by: Foti Dim <foti@navideck.com>
2025-03-19 11:23:22 +01:00
Foti Dim 0b51a5bbbd Fix error on Windows scan (#146)
* Error on windows scan

* Implement thread safe cache handling

* Fix start scan method

* Update windows/src/universal_ble_thread_safe.h

Co-authored-by: Foti Dim <foti@navideck.com>

---------

Co-authored-by: Rohit Sangwan <rohitsangwan647@gmail.com>
2025-03-18 15:41:28 +05:30
Foti Dim a9f396bb4a Improve Android permission documentation (#147)
* Improve Android permission documentation

* Add snap instruction

* Improve Android permissions guide
2025-03-18 07:49:02 +01:00
Rohit Sangwan f0c38f7273 Fix Windows crash on start or stop scan (#143)
* Fix Windows crash on start or stop scan

* Fix crash on stop scan and cleanup

* Update Changelog

* Cleanups
2025-02-25 13:43:51 +01:00
Rohit Sangwan bc19a653dd Fix: Unable to establish connection on channel when hot restart (#142)
* Fix: Unable to establish connection on channel when hot restart

* Update Changelog
2025-02-21 19:27:54 +05:30
Rohit Sangwan 6cc43ccc86 Fix crash on Windows when calling pair APIs with an unknown deviceId (#141)
* Fix crash on Windows when call few apis with an unknown deviceId

* Update Changelog

* Bump Version
2025-02-20 12:28:33 +01:00
Foti Dim 12a5d9d061 Bump version to 0.16 2025-02-17 08:22:15 +01:00
Foti Dim 3170b4b77b Improve requestMTU() docs (#140)
* Improve requestMTU() docs

* Update Linux info
2025-02-17 08:20:43 +01:00
Foti Dim 2c0d36b9d1 Improve ManufacturerDataFilter (#139)
* Improve-ManufacturerDataFilter-docs

* Improve ManufacturerDataFilter namings and code

* Perform more renamings
Add tests
2025-02-17 06:42:28 +01:00
Foti Dim 15256283e3 Do not normalize UUIDs on native side (#138) 2025-02-16 12:03:02 +01:00
Foti Dim 601351889d Reverse _permissionStatus return values in example app 2025-02-15 16:29:47 +01:00
Foti Dim 6443915fc3 Improve readme
Update changelog
2025-02-12 10:18:57 +01:00
Marcel Graber 8e9ddc839d Update bluez.dart to 0.8.3 (#134) 2025-02-11 22:04:44 +01:00
Rohit Sangwan b1b6b680c1 Improve callbacks error handling (#130)
* Improve callbacks error handling

* Update Changelog

* Update CHANGELOG.md

---------

Co-authored-by: Foti Dim <foti@navideck.com>
2025-01-15 17:23:25 +01:00
Rohit Sangwan 17f834edef Improve example app for system connected devices (#123)
* Improve example app for system connected devices

* Add print when no filter is set for system devices

---------

Co-authored-by: Foti Dim <fdimanidis@gmail.com>
2025-01-07 09:55:32 +01:00
Rohit Sangwan 07498db173 Improve Android bluetoothGatt management (#124)
* Improve Android bluetoothGatt management

* Update Changelog

* Apply suggestions from code review

Co-authored-by: Foti Dim <foti@navideck.com>

---------

Co-authored-by: Foti Dim <foti@navideck.com>
2025-01-03 16:59:00 +05:30
Rohit Sangwan 8b1a21939b Use retrievePeripherals on Mac to communicate with device without scan (#122) 2025-01-02 17:32:08 +05:30
Rohit Sangwan f3411280e9 Enhance getSystemDevice API on macOS with Broader Default Services Fi… (#121)
* 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>
2025-01-02 15:58:51 +05:30
Foti Dim dd75894244 Only show ScanFilter warning on web 2024-12-18 10:33:31 +01:00
Rohit Sangwan d5172c3d41 Update Changelog 2024-12-09 18:01:24 +02:00
Rohit Sangwan 1292199426 Add API to disable Bluetooth (#113)
* Add api to disable Bluetooth

* Implement Android support

* Fix apple build

* Update Readme

* Combine rows

---------

Co-authored-by: Foti Dim <fdimanidis@gmail.com>
2024-12-09 21:18:01 +05:30
Rohit Sangwan 7187768bd0 Rename hasCustomFilter to usesCustomFilters (#115) 2024-12-09 16:44:48 +01:00
Rohit Sangwan 437eca70af Fix Windows filter with services (#111)
* Fix Windows filter with services

* Fix comment typos

---------

Co-authored-by: Foti Dim <fdimanidis@gmail.com>
2024-12-09 16:32:42 +01:00
Rohit Sangwan bbf9703303 Fix Windows Bluetooth availability state in Release build (#112)
* Fix Windows Bluetooth availability state in Release build

* Make initialized private

---------

Co-authored-by: Foti Dim <fdimanidis@gmail.com>
2024-12-09 16:08:12 +01:00
Rohit Sangwan 5be22ac0e6 Remove "Characteristic already notifying" error (#110) 2024-12-09 18:48:18 +05:30
Rohit Sangwan 9acb13f106 Fix Android cleanup on gatt disconnect (#109) 2024-12-05 11:26:46 +01:00
Foti Dim 8524b94f19 Change permission description on Apple 2024-12-05 10:42:23 +01:00
Rohit Sangwan c08606cb6d Update Changelog 2024-12-05 13:34:30 +05:30
Rohit Sangwan 19b8167954 Handle Android scan abuse (#104)
* Handle Android scan abuse

* Improve null safety in start scanning

* Update android/src/main/kotlin/com/navideck/universal_ble/SafeScanner.kt

Co-authored-by: Foti Dim <foti@navideck.com>

---------

Co-authored-by: Foti Dim <foti@navideck.com>
2024-12-05 13:28:06 +05:30
Rohit Sangwan 61e1448fe9 Improve Darwin Manager Initialization (#103)
* Improve Darwin Manager Initialization

* throw error on startScan if permission rejected

* Update Changelog
2024-12-05 13:27:53 +05:30
Rohit Sangwan 7542de8242 Fix android cleanup after disconnection (#106) 2024-12-05 08:25:49 +01:00
Foti Dim d39f4cd5d3 Bump flutter_web_bluetooth to 1.0.0 (#102) 2024-12-02 10:58:58 +01:00
fotidim db75c4c71e Increase pin entry window size on Windows 10 2024-11-28 21:56:49 +01:00
Foti Dim ce06a7fa39 Fix multiple app filtering in Linux (#100) 2024-11-20 16:21:59 +01:00
Foti Dim 62c0fc8fb3 Print discovered services 2024-10-23 17:49:06 +03:00
Foti Dim 4e225b756c Add rawName property
Co-authored-by: Rohit Sangwan <rohitsangwan647@gmail.com>
2024-10-08 17:58:38 +02:00
Rohit Sangwan e4b6bd74ba Rename filterMfdList to manufacturerDataFilters and replace mfd with msd 2024-10-03 11:59:14 +05:30
Rohit Sangwan b77d0aaeb4 Add error in connection updates (#89)
* Add error in connection updates

* implement windows

* Update changelog and Docs

* minor fix in connect()

* Add default timeout in connect

* Document new pair and connect API

* Fix Connect and Pair apis to throw proper errors and Improve logging

* remove import

* Rename PairingException and update Exception doc

* Update changelog

* Update comments

---------

Co-authored-by: Foti Dim <fdimanidis@gmail.com>
2024-09-26 23:08:25 +02:00
Foti Dim f41aceaa0e Revert "Add default timeout in Connect, Pair and IsPaired apis"
This reverts commit b978b81cb1.
2024-09-25 16:42:29 +02:00
Foti Dim 4914687284 Rename to triggersConfirmOnlyPairing 2024-09-24 17:33:00 +02:00
Foti Dim 73e4d5e68e Improve comments 2024-09-23 21:07:31 +02:00