Olivier Martin
|
8a108495a1
|
Change 'gattlib_devices_dump_state()' to 'gattlib_adapter_dump_state()'
|
2024-04-10 10:53:30 +02:00 |
Olivier Martin
|
880ff269e5
|
gattlib_char: Ensure there is no buffer overflow when we initialize list of GATT characteristic
|
2024-04-10 10:51:58 +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
|
db04a0eb5c
|
Introduce gattlib_connection_is_valid() to not access 'connection->device'
|
2024-04-08 23:10:47 +02:00 |
Olivier Martin
|
2d771d9390
|
Fix gattlib_connection_is_connected
|
2024-04-08 23:09:09 +02:00 |
Olivier Martin
|
5406a97e57
|
More logging
|
2024-04-08 23:07:57 +02:00 |
Olivier Martin
|
4acf4aa0ab
|
connection: Ensure device_object_path is not freed multiple time
|
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
|
22dca4511c
|
Require a lower version of cmake (same version as Ubuntu 22.04 LTS)
|
2024-04-05 10:25:54 +02:00 |
Olivier Martin
|
5049443704
|
Ensure the connection structure is not freed when used by the connection thread
|
2024-04-04 23:48:43 +02:00 |
Olivier Martin
|
a587aa9dfa
|
gattlib_connect: Set the device has DISCONNECTED on error
|
2024-04-04 21:54:28 +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
|
53e6c2c7ae
|
tests: Added new test that try to connect/disconnect a same device
|
2024-04-04 12:03:29 +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
|
b57d9546df
|
gattlib_glib_mainloop: Ensure mainloop is initialized before using it
|
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
|
fab0e8fa67
|
Consolidate device mutex
|
2024-04-03 21:13:33 +02:00 |
Olivier Martin
|
ce52533f39
|
Rename structure 'gattlib_connection_t' to '_gattlib_device'
|
2024-04-03 21:13:33 +02:00 |
Olivier Martin
|
2861549a80
|
ci/generate-python-package.sh: Fix script when no MANIFEST.in
|
2024-04-03 21:13:33 +02:00 |
Olivier Martin
|
7758bae7d4
|
ci: Automatically create a release on tag
|
2024-04-03 20:06:46 +02:00 |
Olivier Martin
|
42c97d4767
|
Added new Gattlib error types
|
2024-04-03 20:06:46 +02:00 |
Olivier Martin
|
aac4e069c9
|
CMakeLists.txt: Add DEBUG flag when building DEBUG build
|
2024-04-03 20:06:46 +02:00 |
Olivier Martin
|
8f17232216
|
Update ".gitignore"
|
2024-04-03 15:03:48 +02:00 |
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 |