Commit Graph

210 Commits

Author SHA1 Message Date
Rohit Sangwan dffbbd4ba6 Allow modification of ScanFilter properties 2024-07-12 16:23:17 +05:30
Foti Dim 86f3836d5d Update readme and changelog 2024-07-12 09:24:27 +02:00
Rohit Sangwan 9cade4a6ee Fix UUID parsing on Web 2024-07-12 11:44:39 +05:30
Rohit Sangwan 9bb209f8b5 Unify UUID formatting (#55)
* Unify UUID formatting

* Update Readme

* Update Readme

* Apply suggestions from code review

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

* Resolve Comments

* Add test and support 32bit uuid parsing

* Add a toString() method to the BleDevice class for easier debugging and logging

* Rename Uuid to BleUuid

* Rename uuid file to ble_uuid

* Update Readme

---------

Co-authored-by: Foti Dim <foti@navideck.com>
2024-07-05 17:53:55 +02:00
Foti Dim 9cd2faee66 Improve error handling and disconnection events (#60)
* Improve Android error handling

* Improve cleanup after disconnection on Apple

* Update changelog
2024-07-05 11:02:33 +02:00
Foti Dim 0070f5c002 Improve Android error handling 2024-07-03 09:00:52 +02:00
Rohit Sangwan 8d0cfe98d9 Add connecting and disconnecting states to BleConnectionState (#54)
* Add connecting and disconnecting state

* Replace BleConnectionState with boolean in onConnectionChanged callback

* Improve Docs and Changelog

* Implement GetConnectionState in Windows

* Update CHANGELOG.md

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

* Add  code level doc of connectionState getter

---------

Co-authored-by: Foti Dim <foti@navideck.com>
2024-06-20 20:47:02 +02:00
Foti Dim 2bb3d1dcf4 Bump version to 0.10 2024-06-17 11:32:47 +02:00
Foti Dim 796bb14ccc Do not initialize global queue if not needed (#53) 2024-06-17 10:39:17 +02:00
Foti Dim 15453eb28f Rename onConnectionChanged and onValueChanged
Update changelog
Format files
2024-06-15 09:13:01 +02:00
Foti Dim 58677246b3 Improve queue naming 2024-06-13 22:40:06 +02:00
Foti Dim 6361574b77 Add connection properties in BleDevice (#50)
* Rename to BleDevice

* Add isConnected property

* Make isConnected true

* Add isConnected api

* Implement Windows

* Merge add-isConnected-api

* Rename getConnectedDevices to getSystemDevices

* Add code level Doc for isConnected

* Add isPaired

* Revert isPaired

* Add isSystemDevice property in BleDevice

* Return enum instead of bool

---------

Co-authored-by: Rohit Sangwan <rohitsangwan647@gmail.com>
2024-06-13 16:14:54 +02:00
Foti Dim 7d6714e53a Set CBCentralManagerScanOptionAllowDuplicatesKey to true (#51) 2024-06-12 06:02:52 +02:00
Rohit Sangwan b74191bb97 Implement pairing with dialog on windows (#46)
* Implement pairing with dialog on windows

* Minor fix

* Add pin pairing request for windows 10

* Implement native windows dialog for asking pin pairing

* Cleanups

* Improve pairing dialog ui

* Use PairAsync for Windows 11

* Fix OK button text

* Improve pin entry layout

Co-authored-by: Rohit Sangwan <rohitsangwan647@gmail.com>

* Dialog adjustments

* Make dialog non resizable

* Make window topmost

* Final adjustments

* Update changelog

* Release dialog resources properly

* Release dialog resources properly

* Remove duplicate import

* Minor Fix

---------

Co-authored-by: fotidim <foti@navideck.com>
2024-06-11 12:28:25 +02:00
Rohit Sangwan 2fe21962d2 Add queue per device (#48)
* Add queue per device

* Improve API and documentation

* Update lib/src/universal_ble.dart

* Update lib/src/ble_command_queue.dart

---------

Co-authored-by: Foti Dim <fdimanidis@gmail.com>
Co-authored-by: Foti Dim <foti@navideck.com>
2024-06-07 20:55:46 +05:30
Rohit Sangwan 5847bbffc5 Add name prefix filtering (#45)
* Add name filter

* Change name filter to "prefix"

* Implement namePrefix filtering

* Update lib/src/universal_ble_platform_interface.dart

* Update lib/src/universal_ble_platform_interface.dart

---------

Co-authored-by: fotidim <foti@navideck.com>
2024-05-17 15:49:30 +02:00
Foti Dim 77b8658f72 Remove dependency on collection (#43)
* Remove dependency on collection

* Update changelog
2024-05-10 14:25:59 +02:00
Foti Dim a682ea933d Remove dependency on convert 2024-05-10 13:57:08 +02:00
Rohit Sangwan f928e8de50 Update android example gradle 2024-05-10 16:41:55 +05:30
Rohit Sangwan 05697b7d30 Improve setNotifiation completion (#42)
* Improve setNotifiation completion

* Implement Windows

* Minor android fixes

* Few more fixes

* Update changelog

---------

Co-authored-by: Foti Dim <fdimanidis@gmail.com>
2024-05-10 12:59:10 +02:00
Rohit Sangwan b07a8888e0 Fix windows scan filter (#41)
* Fix windows scan filter

* Bump version and add changelog

---------

Co-authored-by: fotidim <foti@navideck.com>
2024-05-10 09:57:04 +02:00
fotidim a49b260b67 Improve service discovery on linux 2024-05-09 14:14:33 +02:00
Foti Dim fef4e8526b Improve Apple, Android and Windows (#40)
* 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>
2024-05-09 11:48:32 +02:00
Foti Dim 3be945c3d5 Improve manufacturer data discovery on Windows (#38)
* Improve manufacturer data discovery on Windows

* Switch pairing protection level to encrypted in Windows

* Minor UI improvement in example app

* Update windows/src/universal_ble_plugin.h

* Remove minimum DevicePairingProtectionLevel

* Improve logging

* Bump version

---------

Co-authored-by: Rohit Sangwan <rohitsangwan647@gmail.com>
2024-05-02 00:09:44 +02:00
fotidim 56f2a09a67 Show device name in details page
Allows service and characteristic to be selectable
2024-05-01 23:18:05 +02:00
Foti Dim e252cfeec0 Format project 2024-04-10 22:57:26 +02:00
Foti Dim 57cf39f581 Make variables final and fix formatting in Linux 2024-04-10 22:56:56 +02:00
Morten Boye Mortensen ef83aad181 Fix characteristic keying on linux (#35) 2024-04-10 22:53:08 +02:00
Foti Dim 3fbd2e2422 Add info about discovering services 2024-03-28 09:49:27 +01:00
Rohit Sangwan 9e51e9e951 Fix discover services on Windows (#32)
* Fix discover services on Windows

* Bump version

---------

Co-authored-by: fotidim <foti@navideck.com>
2024-03-28 13:08:55 +05:30
Foti Dim 4f22fe56cd Fix readme typo 2024-03-25 09:36:43 +01:00
Foti Dim 7e19329bd5 Add info about Bluetooth adapters on Windows and Linux 2024-03-23 15:08:12 +01:00
Rohit Sangwan 870defea86 Update readme and improve logs (#28)
* Update readme and improve logs

* Apply suggestions from code review

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

* Add changelog

* Update Readme

* Update lib/src/universal_ble_web/universal_ble_web.dart

* Improve readme

* Update README.md

* Keep web section

---------

Co-authored-by: Foti Dim <foti@navideck.com>
2024-03-19 09:22:54 +01:00
Rohit Sangwan 1a0e48ba1a Add manufacturer data filtering (#23)
* Add manufacturer data filtering

* Implement manufacturer data filter in windows

* Fix manufacturerData filtering on windows

* Fix linux

* Clean comments

---------

Co-authored-by: Foti Dim <fdimanidis@gmail.com>
2024-03-18 18:44:44 +01:00
Foti Dim 580fca6e4a Fix wrong manufacturer data in release mode (#24)
* Fix wrong manufacturer data in release mode

* Improve code

* fix manufacturer data for little endian

* Minor fix

---------

Co-authored-by: Rohit Sangwan <rohitsangwan647@gmail.com>
2024-03-18 18:16:16 +01:00
Rohit Sangwan fe0a654f36 Implement requestMtu in Linux (#22)
* Implement requestMtu in Linux

* Minor fixes

* Improve requestMtu
2024-03-17 11:48:33 +01:00
fotidim 8108f9dfe4 Add windows capabilities instructions 2024-03-16 22:26:11 +01:00
Foti Dim 3a1c76be8c Fix typo 2024-03-13 21:36:36 +01:00
Foti Dim d5b111288c Release 0.9.4 2024-03-13 21:05:06 +01:00
Rohit Sangwan e22a3ddf99 Fix windows crash when no bluetooth adapter available (#20) 2024-03-13 13:03:42 +01:00
Rohit Sangwan 1f7ba287ef Implement ScanFilter (#17)
* Implement ScanFilter

* Add windows implementation

* Fix Linux and cleanups

* Update Readme, Changelog and Version

* Minor fixes from AI comments

* Fix windows crash and update pigeon

* Fix UUID parsing

* Apply suggestions from code review

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

---------

Co-authored-by: Foti Dim <foti@navideck.com>
2024-03-05 22:37:14 +05:30
Rohit Sangwan 7e47be374b Fix windows release build compilation (#16) 2024-03-04 15:19:47 +05:30
Foti Dim 300295b947 Remove space in comment 2024-03-01 09:50:56 +01:00
Foti Dim 75b73f48ec Update changelog 2024-02-16 19:40:54 +01:00
Rohit Sangwan 663bc76dfe Improve Windows and Linux error handling (#12)
* Improve windows and linux error handeling

* Send proper error code from windows for write command

* Fix Linux

* Fix getConnectedDevices on windows

---------

Co-authored-by: fotidim <fdimanidis@gmail.com>
Co-authored-by: fotidim <foti@navideck.com>
2024-02-16 19:36:36 +01:00
Rohit Sangwan 35d4737f3a Implement queue (#11)
* Implement queue

* Enable queue by default, remove queue from web and update readme

* Rename useQueue to queuesRequests

* Rename queuesRequests and improve readme

* Rename _executeMethod and improve readme

* Rename to _isQueueEnabled

---------

Co-authored-by: Foti Dim <fdimanidis@gmail.com>
2024-02-15 07:57:11 +01:00
Rohit Sangwan d187c8de83 Improve native error handling (#10) 2024-02-14 16:40:04 +01:00
Rohit Sangwan edd5ec20a5 Improve logging (#9)
* Improve logging

* Update changelog

---------

Co-authored-by: Foti Dim <fdimanidis@gmail.com>
2024-02-12 12:00:57 +01:00
Foti Dim 4006dcf956 Fix pubspec.yaml 2024-02-12 11:27:02 +01:00
Rohit Sangwan f2426e8557 Improve Linux implementation (#8)
---------

Co-authored-by: Foti Dim <fdimanidis@gmail.com>
2024-02-12 11:24:37 +01:00