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
Chris Thornton
80d26d702d
Add types to gattlib_(dis)connect in gattlib-py
...
The return type defaults to int for connect, causing the pointer to get
corrupted. Similarly, the disconnect call needs to avoid truncating the
handle.
2020-04-06 23:16:42 +02:00
Olivier Martin
cfc47a0c0d
Fix Python3.8 support
...
Fix : #146
2020-04-04 10:31:32 +02:00
Olivier Martin
9663984e9d
CMakeLists.txt: Fix build
2020-04-04 00:41:09 +02:00
Olivier Martin
26d288613d
doc: Check if Doxygen is installed before generating the doc
2020-04-04 00:06:43 +02:00
Olivier Martin
6a4d00b43c
doc: Only build Python documention when Sphinx is installed
2020-04-03 23:59:27 +02:00
Vanshil Shah
08ce1b3303
Make indications work properly
2020-03-29 12:12:48 +02:00
Khem Raj
3d656b1e19
cmake: Use GNUInstallDirs
...
Helps install cmakefiles in right libdir
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-03-17 20:39:39 +01:00
Jon
5c7ee43bd7
fixed 'apt-install' to 'apt install'
...
i want my first commit
2019-11-19 08:17:53 +01:00
Daniels Umanovskis
c6a3325222
dbus: Add support for reading manufacturer data from advertisement packets
2019-11-05 23:31:59 +01:00
Daniels Umanovskis
d300b66ebd
Make building docs optional - defaults to on
2019-10-29 15:44:25 +01:00
Johannes Bauer
1f6c89f0bf
Fixed error message in notification example app
...
Fixed a small typo in which the newline was printed one character early
in an error message.
2019-09-28 15:00:47 +02:00
Olivier Martin
55d875438b
CMakeLists.txt: Fixed build
2019-08-07 13:41:02 +02:00
Olivier Martin
a5a45a9fad
CMakeLists.txt: Fix implicitly converting 'BOOLEAN' to 'STRING' type.
2019-08-07 13:26:36 +02:00
Olivier Martin
42c9f2667d
CMakeLists.txt: Fix version number
2019-08-05 14:42:07 +02:00
Olivier Martin
6a770e4349
gattlib-py: Introduce 'setup.py'
2019-08-05 13:33:11 +02:00
Olivier Martin
6ace06d3c5
dbus: Do not free value that has been freed by gdbus API
2019-08-05 09:16:41 +02:00
Olivier Martin
3b495609ed
dbus: Remove non-necessary g_variant_builder_unref() as g_variant_builder_end() free it
2019-08-05 09:16:41 +02:00
Olivier Martin
53bb794a7d
examples/read_write_memory: Added read/write for demonstrating memory management
2019-07-21 20:35:57 +02:00
Olivier Martin
967b46bb99
dbus: Remove more memory leak
2019-07-21 20:35:57 +02:00
Olivier Martin
51c6cbeee2
dbus: Reduce memory leak
2019-07-18 20:58:26 +02:00
Olivier Martin
3d433e3551
Initial generated documentation support
2019-07-15 23:33:13 +02:00
Olivier Martin
e342e292fd
gattlib.h: Make sure everything is converted
2019-07-15 23:33:13 +02:00
Olivier Martin
3dd0ab40b4
include/gattlib.h: Added documentation for Stream API
2019-07-15 18:04:11 +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
bcf0596abe
README.md: Fixed BLUEZ_VERSION
2019-07-14 22:53:24 +02:00
Olivier Martin
c956a5b151
.gitignore: Added '__pycache__' to ignore list
2019-07-14 22:47:06 +02:00