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
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
tswaehn
c2c6b2f17b
fix: device_manager not found => SIGSEV
2022-01-30 21:41:17 +01:00
tswaehn
deee3766e1
fix: gattlib_adapter not found => SIGSEV
2022-01-30 21:41:17 +01:00
Flaviu Tamas
bb90b55dde
Flush uart after getting message
...
The internal stdout buffering causes problems when we're trying to get
data, but the data doesn't have any newlines or anything like that.
We're forced to wait for forever until the buffer gets filled up and
output to the console.
This solves that by flushing immediately after each message.
2021-12-03 09:39:07 +01:00
Olivier Martin
1afaa8b460
Introduce Gattlib logging backend
2021-10-18 16:46:45 +02:00
Olivier Martin
809a10a289
dbus/gattlib_notification: Fix warning
2021-10-17 22:28:22 +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
e2b189d226
handle_dbus_gattcharacteristic_from_path: Ensure 'characteristic' is unref
2021-10-17 22:15:27 +02:00
Peter Rosin
f90a95bcff
avoid calling g_object_unref on the pointers that have just been free()d
...
"Steal" the notified_characteristics pointer while at it so that it
does not remain and point to a stale list.
2021-10-17 22:07:06 +02:00
Olivier Martin
fa54ae42cc
handle_dbus_gattcharacteristic_from_path: Ensure 'characteristic_uuid_str' is not NULL
2021-09-15 22:44:28 +02:00
Olivier Martin
c3abb7eb6c
dbus/gattlib.c: Fix copyright
2021-09-01 10:42:26 +02:00
Olivier Martin
f4ecc64d29
Clarify and update license
2021-09-01 00:04:00 +02:00
Кирилл Зимников
2c38df5f30
Fix memory problems
2021-08-31 23:19:37 +02:00
Olivier Martin
db44d7a99d
ci: Add support for github actions
2021-06-09 17:53:08 +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
0xloem
edb5862f96
make notification example a little more general
2021-05-23 13:46:21 +02:00
Kevin Dewald
15210d1c35
Fixed recently introduced double-free error.
2021-04-15 22:39:10 +02:00
chenbin
3f85abd606
fix memory leak.
2021-04-13 22:49:25 +02:00
Kevin Dewald
b137160afc
Fixed handling of null MAC addresses during scanning.
2021-04-05 21:45:27 +02:00
Kevin Dewald
9451e19426
Add verification for null mac address.
2021-03-19 12:46:32 +01:00
Kevin Dewald
321c37dc57
Removed extra print statement.
2021-03-04 00:48:06 +01:00
Kevin Dewald
49790a92bf
Fixed bug where notifications will be enabled but no events will be received.
2021-03-03 13:04:50 +01:00
Kevin Dewald
fee6603fa3
Fixed uninitialized memory error.
2021-03-03 13:01:30 +01:00
Kevin Dewald
3c917fe683
Fixed missing characteristic detection when discovering services.
2021-03-02 22:23:45 +01:00
Olivier Martin
d63b7ccb27
examples/nordic_uart: Use 'gattlib_notification_start()'
2021-02-01 16:48:02 +01:00
Olivier Martin
b8f60de4e5
dbus/gattlib_notification: Print which UUID cannot be found
2021-02-01 16:46:25 +01:00
0xloem
acf3df7da6
Force python to link with the right kind of libraries
2020-12-13 11:30:51 +00:00
Avinash Jois
6dcf6b904e
Fix timeout removal
2020-12-07 23:17:08 +00:00
Avinash Jois
bef872c588
Remove extra line
2020-12-07 23:17:08 +00:00
Avinash Jois
989483acdb
Properly disable scan after scan_loop termination
2020-12-07 23:17:08 +00:00