Olivier Martin
880f1d2cd0
Add support to retrieve all manufacturer data from GATT advertisement packets
2024-04-10 10:53:45 +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
5f43addb8f
gattlib_disconnection: Added support to wait for the disconnection to be effective
2024-03-29 00:20:30 +01:00
Olivier Martin
2a46780e96
Fix gattlib and examples
2024-03-18 00:19:44 +01:00
Olivier Martin
24ab0ea95f
Reduce compilation warnings
2024-03-07 23:57:58 +01:00
Olivier Martin
f38f73a9a4
gattlib: Change gattlib_connect to better use event loop
2024-02-22 19:54:43 +01:00
Olivier Martin
d3d9600114
cmake: Specify cmake version + Fix finding Python development module
2024-02-22 09:30:22 +01:00
Olivier Martin
4c5f35f15f
error: Introduce error module to catch DBUS error details
2024-02-15 22:00:06 +01:00
Olivier Martin
1d80061bf2
python: Fix callback back to native gattlib
2024-02-12 22:04:57 +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
VL-80
5b8893c647
bluez/gattlib_adapter.c: Fix bug
...
The checking of the result of the hci_open_dev() function needs to be done on the derefenced value, not the pointer (which can not be negative).
2022-01-30 21:43:05 +01:00
Olivier Martin
1afaa8b460
Introduce Gattlib logging backend
2021-10-18 16:46:45 +02:00
Olivier Martin
e93504b91f
cmake: Update 'cmake_minimum_required' as 2.6 is getting deprecated
2021-10-17 22:22:05 +02:00
Olivier Martin
f4ecc64d29
Clarify and update license
2021-09-01 00:04:00 +02:00
vlefebvre
d66e268865
fix glib CRITICAL warning
...
In the case when we deal with the timeout/error result, the resource
has lready been unref
Signed-off-by: vlefebvre <valentin.lefebvre@iot.bzh>
2021-05-28 22:29:40 +02:00
vlefebvre
f3b5b295bc
fix hard path during installation of gattlib
...
Using CMAKE macro to install correctly the library gattlib. In
aarch64 it will install into /usr/lib64 dir insteed of /usr/lib.
Signed-off-by: vlefebvre <valentin.lefebvre@iot.bzh>
2021-05-28 22:29:08 +02:00
Olivier Martin
825fc4d07c
gattlib: Introduce indefinite scan timeout
2020-04-09 10:33:27 +02:00
Olivier Martin
a8a06114e2
bluez: Fix warning
2020-04-08 22:30:54 +02:00
Olivier Martin
71c4e71952
gattlib: Pass 'adapter' rather than MAC address to gattlib_connect()
2020-04-08 22:30:54 +02:00
Olivier Martin
193c86590e
gattlib: Introduce helper function to select Eddystone devices
2019-07-15 18:04:11 +02:00
Olivier Martin
50129fe753
bluez: Returns GATTLIB_ errors
2019-07-15 18:04:11 +02:00
Olivier Martin
69fb243fe7
gattlib: Implement `gattlib_get_advertisement_data()`
2019-07-15 18:04:11 +02:00
Olivier Martin
0142c33dd8
gattlib: Disable gattlib_get_rssi() for now
...
This API has been disabled until this issue is clarified: https://github.com/labapart/gattlib/issues/75
RSSI can be accessed through `gattlib_get_rssi_from_mac()` before the
connection is established.
2019-07-09 20:04:35 +02:00
Olivier Martin
a42f76aa7d
gattlib: Added 'adapter' and 'user_data' parameter to 'gattlib_discovered_device_t' callback
2019-07-09 20:04:35 +02:00
Olivier Martin
a52f66834a
gattlib: Introduce 'gattlib_get_rssi_from_mac()'
2019-07-09 20:04:35 +02:00
Olivier Martin
2ae549f9d6
gattlib: Introduce gattlib_adapter_scan_enable_with_filter()
2019-07-09 20:04:35 +02:00
Olivier Martin
eca8415fd6
gattlib: Introduced gattlib_get_rssi()
...
Fix : #75
2019-07-09 12:34:32 +02:00
Olivier Martin
046f077085
gattlib: Move 'struct _gatt_connection_t' out of 'gattlib.h'
2019-07-07 22:17:49 +02:00
Olivier Martin
8020503ab6
gattlib: Added support for write-without-response
2019-07-05 22:50:23 +02:00
Olivier Martin
50401ad1c5
include/gattlib.h: Allow to call gattlib_discover_primary() with NULL arguments
2019-06-27 22:27:39 +02:00
Olivier Martin
120f6e0886
bluez: Minor coding style change
2019-06-27 22:27:39 +02:00
Olivier Martin
ceaa8a17e4
gattlib: Change gattlib_read_char_by_uuid() to return an allocated buffer that fits GATT value size
2019-05-27 22:25:46 +02:00
Olivier Martin
e3ff819872
Reduce memory leaks
2019-05-21 21:40:55 +02:00
Olivier Martin
54f06b64f5
Check allocations are successfull
2019-05-21 21:40:55 +02:00
Olivier Martin
c479cec21f
include/gattlib.h: Unify error code
2019-05-21 21:40:55 +02:00
Olivier Martin
c2a07a9139
Remove legacy options from `gattlib_connect()`
...
Legacy options can still be set from 'options' parameter.
2019-05-20 20:15:23 +02:00
Olivier Martin
510d650b85
gattlib_adapter_open: Ensure adapter pointer is not NULL
2019-05-19 00:27:54 +02:00
Olivier Martin
7ad64704cb
bluez: Fix buffer length in gattlib_write_char_by_uuid()
...
Issue found by @kwikius in #74 and @mweal-ed in #35 .
2019-03-05 13:22:15 +01:00
Olivier Martin
3ce4632d1c
bluez/gattlib_connect.c: Make intentation consistent
2019-03-05 13:15:22 +01:00
Olivier Martin
60b813a770
Fix stack-based bufferoverflow
...
Fix : #81
Fix : #82
2019-03-05 13:11:50 +01:00
Daniel Vlasenko
7a2fdbd062
andded user data pointer gatt_connect_async signature. these data will be passed to gatt_connect_cb callback to get information about object requested connection
2018-10-18 09:10:55 +02:00
Thomas Li Fredriksen
a370ea5f02
Fixed sub-project include-path interface
2018-01-03 13:45:28 +01:00
Thomas Li Fredriksen
d6a87e47a9
Fixed examples linker issue (missing pthread link). Added two cmake-options GATTLIB_BUILD_EXAMPLES and GATTLIB_SHARED_LIB
2018-01-03 13:45:28 +01:00
mikew-ed
6332cb807c
get_uuid_from_handle returns wrong uuid #30 fix
2017-07-10 07:35:50 -07:00
Olivier Martin
2e88aec8e1
Initial travis-ci support
2017-07-02 15:01:31 +02:00
Olivier Martin
0ee021f531
Fixed build for Bluez v4.101
2017-03-17 11:35:13 +01:00
Olivier Martin
a40b8f9724
Select gattlib backend (bluez code or DBus API) following Bluez version
2017-03-17 11:20:08 +01:00
Olivier Martin
cfe5613d0d
gattlib.h: Added 'const' to buffer for 'gattlib_write_char_by_(uuid|handle)'
2017-03-17 11:20:08 +01:00