Commit Graph

144 Commits (00cbc1ab87281dd4f5cca9c95494482a3d03a665)

Author SHA1 Message Date
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 f38f73a9a4 gattlib: Change gattlib_connect to better use event loop 2024-02-22 19:54:43 +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 13bd692bb4 ci: Generate Python package with cibuildwheel 2024-02-22 13:28:22 +01:00
Olivier Martin 18e1658d6f ci: Fix build 2024-02-22 09:30:22 +01:00
Olivier Martin d3d9600114 cmake: Specify cmake version + Fix finding Python development module 2024-02-22 09:30:22 +01:00
Olivier Martin fbd65421d0 Ensure adapter is present 2024-02-21 00:28:08 +01:00
Olivier Martin aacc53c511 Fix warnings from release build 2024-02-21 00:28:08 +01:00
Olivier Martin 2f83e85eee dbus: Remove event_thread 2024-02-19 18:00:52 +01:00
Olivier Martin 1530184776 gattlib_adapter: Add support to reconnect disconnected device 2024-02-19 18:00:52 +01:00
Olivier Martin b28a0422f0 dbus: Add support to remove device property signal 2024-02-19 18:00:52 +01:00
Olivier Martin c4e4b8fa5a dbus/gattlib_notification: Use lookup instead of looping through variant keys 2024-02-19 18:00:52 +01:00
Olivier Martin 0a868a506b Added a public function to ease the use of GLib mainloop 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 ad7aa1899e on_handle_device_property_change: Logging changes 2024-02-15 22:00:06 +01:00
Olivier Martin f894c8e23a gattlib_disconnect: Add mutex to avoid double free 2024-02-15 22:00:06 +01:00
Olivier Martin db8aee543b dbus/on_handle_characteristic_indication: Fix logging 2024-02-15 22:00:06 +01:00
Olivier Martin 011f4e4c4a gattlib_disconnect: Call on_disconnect callback 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 028dfef5fc python: Update deprecated calls 2024-02-12 00:13:07 +01:00
Olivier Martin a41061c1d4 Various fixes/logging/features 2024-02-12 00:11:45 +01:00
Olivier Martin 0369342fd4 Introduce 'gattlib_characteristic_free_value()' to release memory allocated after reading GATT characteristic 2022-05-16 21:44:31 +02:00
Olivier Martin 3ac5707c95 dbus: Fix battery value reading 2022-05-16 21:44:31 +02:00
Olivier Martin c1a3c02154 dbus: Add battery characteristics to the list of GATT characteristic 2022-05-16 21:44:31 +02:00
Olivier Martin 59820e2cad gattlib-py/device: Re-enable RSSI 2022-05-16 21:44:31 +02: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 d9c18b93a3 dbus/gattlib_discover_primary: Ensure a valid connection pointer is given 2022-05-11 20:29:07 +02:00
wurong bdc273fe0a fix mem leak. 2022-05-11 15:53:48 +02:00
tswaehn b82be455b4 fix: sigsev when service is null 2022-03-10 22:00:34 +01:00
tswaehn 5badee94b9 fix: sigsev when service property returns null 2022-03-10 22:00:34 +01:00
tswaehn c2c6b2f17b fix: device_manager not found => SIGSEV 2022-01-30 21:41:17 +01:00
tswaehn deee3766e1 fix: gattlib_adapter not found => SIGSEV 2022-01-30 21:41:17 +01:00
Olivier Martin 1afaa8b460 Introduce Gattlib logging backend 2021-10-18 16:46:45 +02:00
Olivier Martin 809a10a289 dbus/gattlib_notification: Fix warning 2021-10-17 22:28:22 +02:00
Olivier Martin e2b189d226 handle_dbus_gattcharacteristic_from_path: Ensure 'characteristic' is unref 2021-10-17 22:15:27 +02:00
Peter Rosin f90a95bcff avoid calling g_object_unref on the pointers that have just been free()d
"Steal" the notified_characteristics pointer while at it so that it
does not remain and point to a stale list.
2021-10-17 22:07:06 +02:00
Olivier Martin fa54ae42cc handle_dbus_gattcharacteristic_from_path: Ensure 'characteristic_uuid_str' is not NULL 2021-09-15 22:44:28 +02:00
Olivier Martin c3abb7eb6c dbus/gattlib.c: Fix copyright 2021-09-01 10:42:26 +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 15210d1c35 Fixed recently introduced double-free error. 2021-04-15 22:39:10 +02:00
chenbin 3f85abd606 fix memory leak. 2021-04-13 22:49:25 +02:00