Commit Graph

366 Commits (86f9a742f36ea441701b7c8ec78c3f2e670bf224)

Author SHA1 Message Date
Olivier Martin 86f9a742f3 Ensure connection timeout is freed when the connection is free 2024-03-29 09:18:53 +01:00
Olivier Martin 50dca02e97 Update README 2024-03-29 00:20:41 +01:00
Olivier Martin 6cdbe58e7b FixMe: Disable freeing the handler - there is a pointer ref counter not valid when doing so 2024-03-29 00:20:41 +01:00
Olivier Martin db629448fd Use calloc() instead of malloc() when allocating 'struct' or array in memory 2024-03-29 00:20:30 +01: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 a85dd83015 Consolidate handlers 2024-03-29 00:19:56 +01:00
Olivier Martin 5ca46ad208 examples: Port more examples to new API 2024-03-27 22:07:16 +01:00
Olivier Martin f3f6bb37bb Generate packages 2024-03-26 18:55:58 +01:00
Olivier Martin 5d9a36f1d1 logging_backend/python: Do not call 'GATTLIB_LOG(GATTLIB_ERROR, ...)' on error to avoid recursion 2024-03-26 16:49:19 +01: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 8e351e746c python: Introduce __version__ 2024-03-26 13:43:42 +01:00
Olivier Martin 6cea2d37db Ensure gattlib can be built without Python support 2024-03-25 12:43:17 +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 d2fb01d85e Fix gattlib connection release on disconnection 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 6823c02892 dbus: Improve logging 2024-03-13 13:52:57 +01:00
Olivier Martin 7925aa6a38 Fix compilation warnings about enum type 2024-03-12 20:38:31 +01:00
Olivier Martin 2edc8f2620 Add support to enable Address Sanitizer 2024-03-12 20:37:53 +01:00
Olivier Martin 36e0cb4934 Add more debug logs 2024-03-07 23:58:35 +01:00
Olivier Martin 24ab0ea95f Reduce compilation warnings 2024-03-07 23:57:58 +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 ea1fe15857 gattlib: Catch connectio timeout 2024-03-05 22:46:38 +01:00
Olivier Martin 00cbc1ab87 common: Set pointer to NULL after freeing them 2024-02-27 11:28:49 +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 f4cc321a90 dbus/gattlib_adapter: Stop BLE scan before waiting for the loop to stop 2024-02-26 23:16:35 +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 ebd163f1dc ci: Push tagged gattlib to Pypi repo 2024-02-22 21:33:19 +01:00
Olivier Martin 01ea87aa16 Disable C examples as they are not ported yet to new gattlib_connect() 2024-02-22 19:54: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 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 860f7f5b61 ci: Fix tagged release 2024-02-22 19:30:58 +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 5f5cb5bd12 common/logging_backend: Introduce Python backend 2024-02-22 09:30:22 +01:00
Olivier Martin 6751a17cee .github/workflows/github-actions.yml: Fix Pypi publishing 2024-02-21 18:01:19 +01:00
Olivier Martin 57c99c6038 .github/workflows/github-actions.yml: Update actions/checkout 2024-02-21 17:53:59 +01:00
Olivier Martin b8268c4cb5 ci: Generate Python package 2024-02-21 17:45:09 +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 aacc53c511 Fix warnings from release build 2024-02-21 00:28:08 +01:00
Olivier Martin 7d5748cb0d ci: Script to generate Python package 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 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