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
Ankur Verma
c6c29ad9fe
Allow gattlib to be added as a subdirectory
2020-11-27 16:00:42 +00:00
Vanshil Shah
054f64e115
Set adapter name properly if non-default adapter is passed in
2020-07-20 20:19:09 +01:00
saad-s
f5c2fcc906
cmake option to enable/disable python interface
2020-07-02 13:29:18 +01:00
saad-s
d4bd91ad1e
fix missing ARCHIVE DESTINATION for static building
2020-07-02 13:29:18 +01:00
Olivier Martin
b63dc0f23e
dbus: Fix 'Write-Without-Reponse' GATT operation
2020-05-25 23:54:48 +02:00
Ankur Verma
0bbe347daf
Add support to build gattlib dbus mode as a static library
2020-05-22 10:50:51 +02:00
Olivier Martin
7056103e6a
dbus/gattlib_advertisement: Fix advertisement_data access in get_advertisement_data_from_device()
2020-04-09 21:36:32 +02:00
Olivier Martin
b61c03ae25
gattlib-py/examples/advertisement_data: Fix typo
2020-04-09 11:49:19 +02:00
Olivier Martin
3dfaa875b6
gattlib-py/examples: Introduce 'advertisement_data'
2020-04-09 11:47:34 +02:00
Olivier Martin
a34a2d2a21
gattlib-py/gattlib/device.py: Add support to retrieve advertisement data when device not connected
2020-04-09 11:47:34 +02:00
Olivier Martin
f18dd02530
gattlib-py/gattlib/adapter.py: Add support for GATTLIB_DISCOVER_FILTER_NOTIFY_CHANGE
2020-04-09 11:47:34 +02:00
Olivier Martin
8cb7f01104
gattlib-py: Fix 'gattlib_adapter_scan_*()' prototype after 'timeout' type change
2020-04-09 11:47:34 +02:00
Olivier Martin
9315ecfa54
dbus: Check connection parameter passed to gattlib_get_advertisement_data()
2020-04-09 11:47:34 +02:00
Olivier Martin
eb70896c98
examples: Introduce 'advertisement_data' to demonstrate how to retrieve advertisement data from devices around
2020-04-09 10:33:27 +02:00
Olivier Martin
825fc4d07c
gattlib: Introduce indefinite scan timeout
2020-04-09 10:33:27 +02:00
Olivier Martin
c0215ee4ce
gattlib: Introduce GATTLIB_DISCOVER_FILTER_NOTIFY_CHANGE
2020-04-09 10:33:27 +02:00
Olivier Martin
4ebc640ddd
dbus: Only start BLE scan when all signals are connected
2020-04-09 10:33:27 +02:00
Luca Weiss
d40ac8e743
gattlib-py: add get_advertisement_data method
2020-04-08 22:57:52 +02:00
Olivier Martin
a8a06114e2
bluez: Fix warning
2020-04-08 22:30:54 +02:00
Olivier Martin
ddc790358f
dbus: Ensure GATT Notification/Indication are correctly disconnected
2020-04-08 22:30:54 +02:00
Olivier Martin
504ee7d1a7
dbus: Factorise code between GATT Notification and GATT Indication
2020-04-08 22:30:54 +02:00
Olivier Martin
46da1ee50c
dbus: Prevent compiler warning
2020-04-08 22:30:54 +02:00
Olivier Martin
6f3ad714a2
dbus: Attach the BLE adapter to connection
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
7107d9f5b4
dbus: Check the disconnection of the handler has really succeeded
2020-04-08 22:30:54 +02:00
Olivier Martin
52f195f5c2
dbus: Do not free 'rssi_variant' before using 'arg_properties_builder'
2020-04-08 12:58:39 +02:00
Olivier Martin
6df99eadbe
dbus: Remove scan timeout
2020-04-08 00:29:36 +02:00
Chris Thornton
d26065d6ad
Only pass pointer value as long type on 64 bit systems.
...
When testing this on a RPI this causes issues, so we need to switch
based on the architecture.
2020-04-07 22:28:11 +02:00
Olivier Martin
0ef32af289
gattlib: Add the ability to stop scanning before timeout expired
2020-04-07 12:29:19 +02:00
Olivier Martin
51bbc0242b
example: Add example to find Eddystone in C
2020-04-07 12:29:19 +02:00
Olivier Martin
392d9d5eb3
gattlib.h: Add Eddystone constants
2020-04-07 12:29:19 +02:00
Chris Thornton
1779c75062
Pass the pointer value as a long int to python
...
The pointer could be truncated which results in an invalid memory
address when trying to get at the array.
2020-04-07 11:48:54 +02:00
Chris Thornton
efc656ca52
Use c_ubyte for byte array casts
...
This prevents having to do the explicit & 0xff, and avoids generating an
error when calling .read() (which didn't have the bitmask)
2020-04-07 11:48:54 +02:00