Commit Graph

79 Commits (master)

Author SHA1 Message Date
Olivier Martin f99558d9b8 gattlib-py: Make pylint pass (and fix issue) 2024-04-24 14:37:28 +02:00
Olivier Martin 9fb48aacb6 gattlib-py/examples/advertisement_data: Fix example 2024-04-24 14:37:28 +02:00
Olivier Martin f79e90ce02 gattlib-py: Added support for manufacturer data from GATT advertising 2024-04-11 22:01:28 +02:00
Olivier Martin 35566d198a gattlib-py: Fix setup.py when building source package 2024-04-11 22:01:28 +02:00
Olivier Martin 880f1d2cd0 Add support to retrieve all manufacturer data from GATT advertisement packets 2024-04-10 10:53:45 +02:00
Olivier Martin 76353f8659 Do not build Python support by default and build examples by default 2024-04-10 10:50:48 +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 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 67ff1de69b gattlib-py/adapter: Catch error on opening/closing BLE adapter 2024-04-04 12:03:29 +02:00
Olivier Martin 42c97d4767 Added new Gattlib error types 2024-04-03 20:06:46 +02:00
Olivier Martin 5f43addb8f gattlib_disconnection: Added support to wait for the disconnection to be effective 2024-03-29 00:20:30 +01:00
Olivier Martin 8e351e746c python: Introduce __version__ 2024-03-26 13:43:42 +01:00
Olivier Martin 2a46780e96 Fix gattlib and examples 2024-03-18 00:19:44 +01:00
Olivier Martin b2c4094cb6 gattlib-py: Fix some memory leaks 2024-03-13 13:52:57 +01:00
Olivier Martin 98833bf7ce gattlib-py/gattlib/mainloop: Ensure we are not overwriting the mainloop 2024-03-13 13:52:57 +01:00
Olivier Martin ea1fe15857 gattlib: Catch connectio timeout 2024-03-05 22:46:38 +01:00
Olivier Martin d2702050ec gattlib-py: Add support for loading 'libgattlib.so' from different location 2024-02-26 23:19:10 +01:00
Olivier Martin 6321d28d25 gattlib-py/setup.py: Add gattlib-py dependency 2024-02-23 10:20:21 +01:00
Olivier Martin f0426ae3e3 gattlib-py/gattlib: Fix loading native library 2024-02-22 22:26:43 +01:00
Olivier Martin f38f73a9a4 gattlib: Change gattlib_connect to better use event loop 2024-02-22 19:54:43 +01:00
Olivier Martin 5f5cb5bd12 common/logging_backend: Introduce Python backend 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 61043afd98 gattlib-py: Use logger (instead of logging) 2024-02-21 00:28:08 +01:00
Olivier Martin 33a634a535 gattlib-py/setup.py: Build C files along Python module 2024-02-21 00:28:08 +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 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 f894c8e23a gattlib_disconnect: Add mutex to avoid double free 2024-02-15 22:00:06 +01:00
Olivier Martin 8065d12dac python: Various fixes 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 2518348023 gattlib: Introduce 'gattlib_adapter_get_name()' 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 3c9b0eaa1c Introduce 'GATTLIB_ERROR_TIMEOUT' error 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 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 0719dcc31d gattlib-py/examples/ble_scan: Explicit action (logging) 2022-05-11 20:29:07 +02:00