Commit Graph

366 Commits (86f9a742f36ea441701b7c8ec78c3f2e670bf224)

Author SHA1 Message Date
Olivier Martin b28a0422f0 dbus: Add support to remove device property signal 2024-02-19 18:00:52 +01:00
Olivier Martin b193543fb0 gattlib/mainloop: Move mainloop to Python to ease support 2024-02-19 18:00:52 +01:00
Olivier Martin 7a8d53d817 gattlib-py/gattlib/exception: Print 'le-connection-abort-by-local' on related exception 2024-02-19 18:00:52 +01:00
Olivier Martin 7922810016 gattlib-py/gattlib/device: Fix logging 2024-02-19 18:00:52 +01:00
Olivier Martin 8e5412a1a9 gattlib-py: Ensure BLE adapter is opened 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 76fb44643f gattlib-py/setup.py: Remove Travis CI support 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 7f6979c82b gatt_notification: Use thread pool of one thread to ensure serial processing of notification 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 8065d12dac python: Various fixes 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 959ee55b61 gattlib: Change gattlib_register_(on_disconnect|notification|indication) 2024-02-15 22:00:06 +01:00
Olivier Martin 118dc961d6 gattlib_on_disconnected_device: Make callback synchronous 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 3c9b0eaa1c Introduce 'GATTLIB_ERROR_TIMEOUT' error 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 642556f8b9 gattlib-py/gattlib/adapter: Update comment 2024-02-12 00:11:45 +01:00
Olivier Martin 96407ad763 gattlib-py/examples/ble_scan: Fix example 2024-02-12 00:11:45 +01:00
Olivier Martin 6d271f98b6 gattlib-py: Document how to develop 'gattlib-py' 2024-02-12 00:11:45 +01:00
Olivier Martin 33a8a27592 gattlib-py: Fix/Handle returned error code 2022-05-16 21:44:31 +02: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 20f2d5facf gattlib-py/device: Add support to unregister GATT notification 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 ac1f3d44d5 gattlib-py/exception: Handle -EINVAL 2022-05-16 21:44:31 +02:00
Olivier Martin bae7df3ee0 gattlib-py/adapter: Add support to pass UUID for the Advertisement filter 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 75fda5df84 gattlib-py: Rename 'id' attribute into 'mac_address' 2022-05-11 20:29:07 +02:00
Olivier Martin 2570850046 common/gattlib_common: Release Python PyObject 2022-05-11 20:29:07 +02:00
Olivier Martin d9c18b93a3 dbus/gattlib_discover_primary: Ensure a valid connection pointer is given 2022-05-11 20:29:07 +02:00
Olivier Martin 0719dcc31d gattlib-py/examples/ble_scan: Explicit action (logging) 2022-05-11 20:29:07 +02:00
Olivier Martin 5c87eda925 build: Disable doc generation by default 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
VL-80 2448da5410 bluez5: Fix potential null pointer dereference
d->attrId was called before d was checked for being a valid pointer.
2022-01-30 21:43:05 +01:00
VL-80 85acbd8c88 bluez4: Fix potential null pointer dereference
d->attrId was called before d was checked for being a valid pointer.
2022-01-30 21:43:05 +01:00