Commit Graph

53 Commits (aaab2dc74e8b4448f0ecc1bdd0c5310f0155f801)

Author SHA1 Message Date
Olivier Martin aaab2dc74e gattlib_adapter_close: Do not block mutex while waiting for scan_loop_thread to complete 2024-04-11 00:28:24 +02:00
Olivier Martin 5406a97e57 More logging 2024-04-08 23:07:57 +02:00
Olivier Martin f609f7d507 adapter: Added support to open multiple time the same adapter 2024-04-08 23:07:57 +02:00
Olivier Martin dc009029fa Log when the adapter or device has been released 2024-04-08 12:01:53 +02:00
Olivier Martin cdd62f6d35 Return specific error code when the adapter or device has been removed 2024-04-08 10:08:57 +02:00
Olivier Martin 0e34df58e5 Single lock for all gattlib library 2024-04-08 00:15:16 +02:00
Olivier Martin 014c2802ee Refactor code to better separate gattlib_adapter_t, gattlib_device_t, gattlib_connection_t and their backends 2024-04-05 13:20:40 +02:00
Olivier Martin fcedfb9e85 gattlib_adapter: Improve BLE scan code with comments and renaming 2024-04-04 12:03:29 +02:00
Olivier Martin 2e99c4f1b6 dbus: Handle when the device is removed from DBUS 2024-04-04 12:03:29 +02:00
Olivier Martin 709b76019e Manage device state during its life cycle 2024-04-04 12:03:29 +02:00
Olivier Martin 0c1334c5b4 Consolidate device list between discovered and connected devices 2024-04-04 12:03:29 +02:00
Olivier Martin aa6a7b79bb Consolidate device state to prevent concurrent accesses 2024-04-04 12:03:29 +02:00
Olivier Martin 6e6436ceb3 gattlib_adapter: Check if 'is_scanning' before stopping BLE scan 2024-03-26 13:46:31 +01:00
Olivier Martin 5ba3eda6f5 dbus/gattlib_adapter: Use mutex to get device manager 2024-03-26 13:46:31 +01:00
Olivier Martin 2a46780e96 Fix gattlib and examples 2024-03-18 00:19:44 +01:00
Olivier Martin 7925aa6a38 Fix compilation warnings about enum type 2024-03-12 20:38:31 +01:00
Olivier Martin 36e0cb4934 Add more debug logs 2024-03-07 23:58:35 +01:00
Olivier Martin e26e9f0b7a Fix some compiler warnings 2024-03-07 08:53:42 +01:00
Olivier Martin 6e718253b0 adapter: Add support to avoid double free of BLE adapter 2024-03-06 15:03:56 +01:00
Olivier Martin f4cc321a90 dbus/gattlib_adapter: Stop BLE scan before waiting for the loop to stop 2024-02-26 23:16:35 +01:00
Olivier Martin e554dec3dc gattlib_adapter: Improve/Fix BLE scan 2024-02-22 19:54:43 +01:00
Olivier Martin 100c5d5f69 gattlib_adapter: Introduce wait_scan_loop_stop_scanning 2024-02-22 19:54:43 +01:00
Olivier Martin fbd65421d0 Ensure adapter is present 2024-02-21 00:28:08 +01:00
Olivier Martin 1530184776 gattlib_adapter: Add support to reconnect disconnected device 2024-02-19 18:00:52 +01:00
Olivier Martin 4c5f35f15f error: Introduce error module to catch DBUS error details 2024-02-15 22:00:06 +01:00
Olivier Martin 0fde4ff82d gattlib_adapter_close: Ensure BLE scan is disabled 2024-02-15 22:00:06 +01:00
Olivier Martin 9a9e49edcd dbus/on_interface_proxy_properties_changed: Check device_manager is not NULL (could happen on disconnection) 2024-02-15 22:00:06 +01:00
Olivier Martin 2518348023 gattlib: Introduce 'gattlib_adapter_get_name()' 2024-02-12 22:35:46 +01:00
Olivier Martin 884904a3c0 dbus/gattlib_adapter: Fix 'gattlib_adapter_close()' 2024-02-12 22:35:46 +01:00
Olivier Martin 1d80061bf2 python: Fix callback back to native gattlib 2024-02-12 22:04:57 +01:00
Olivier Martin ec9e5cd38a dbus: Fix build 2024-02-12 09:52:07 +01:00
Olivier Martin d5aa8d6468 Fix logging for on_interface_proxy_properties_changed() 2024-02-12 00:13:07 +01:00
Olivier Martin 306acf8483 Fix 'discovered_devices' list (set NULL after free + mutex) 2024-02-12 00:13:07 +01:00
Olivier Martin b5a785e4b6 dbus: Refactore gattlib_adapter_scan_enable_with_filter() to also introduce the non-blocking version 2022-05-16 21:44:31 +02:00
Olivier Martin 1afaa8b460 Introduce Gattlib logging backend 2021-10-18 16:46:45 +02:00
Olivier Martin f4ecc64d29 Clarify and update license 2021-09-01 00:04:00 +02:00
Кирилл Зимников 2c38df5f30 Fix memory problems 2021-08-31 23:19:37 +02:00
Kevin Dewald b137160afc Fixed handling of null MAC addresses during scanning. 2021-04-05 21:45:27 +02:00
Avinash Jois 6dcf6b904e Fix timeout removal 2020-12-07 23:17:08 +00:00
Avinash Jois bef872c588 Remove extra line 2020-12-07 23:17:08 +00:00
Avinash Jois 989483acdb Properly disable scan after scan_loop termination 2020-12-07 23:17:08 +00:00
Olivier Martin 825fc4d07c gattlib: Introduce indefinite scan timeout 2020-04-09 10:33:27 +02:00
Olivier Martin c0215ee4ce gattlib: Introduce GATTLIB_DISCOVER_FILTER_NOTIFY_CHANGE 2020-04-09 10:33:27 +02:00
Olivier Martin 4ebc640ddd dbus: Only start BLE scan when all signals are connected 2020-04-09 10:33:27 +02:00
Olivier Martin 46da1ee50c dbus: Prevent compiler warning 2020-04-08 22:30:54 +02:00
Olivier Martin 6f3ad714a2 dbus: Attach the BLE adapter to connection 2020-04-08 22:30:54 +02:00
Olivier Martin 52f195f5c2 dbus: Do not free 'rssi_variant' before using 'arg_properties_builder' 2020-04-08 12:58:39 +02:00
Olivier Martin 6df99eadbe dbus: Remove scan timeout 2020-04-08 00:29:36 +02:00
Olivier Martin 0ef32af289 gattlib: Add the ability to stop scanning before timeout expired 2020-04-07 12:29:19 +02:00
Olivier Martin 3b495609ed dbus: Remove non-necessary g_variant_builder_unref() as g_variant_builder_end() free it 2019-08-05 09:16:41 +02:00