Commit Graph

79 Commits (master)

Author SHA1 Message Date
Olivier Martin f4ecc64d29 Clarify and update license 2021-09-01 00:04:00 +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 c0215ee4ce gattlib: Introduce GATTLIB_DISCOVER_FILTER_NOTIFY_CHANGE 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
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 6a770e4349 gattlib-py: Introduce 'setup.py' 2019-08-05 13:33:11 +02:00
Olivier Martin 193c86590e gattlib: Introduce helper function to select Eddystone devices 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 fef6659af0 gattlib-py: Exposed 'Write-without-response' 2019-07-14 22:47:06 +02:00
Olivier Martin 3f829b806c gattlib-py: Check type of data for write() operation 2019-07-14 22:47:06 +02:00
Olivier Martin e9b98f6dd7 gattlib-py: Disable gattlib_get_rssi() (see #75) 2019-07-14 22:47:06 +02:00
Olivier Martin 4e9b1094d4 gattlib-py/examples/nordic_thingy: Add example for sound support 2019-07-14 22:47:06 +02:00
Olivier Martin 4f8625cedf gattlib: Add stream API 2019-07-14 22:47:06 +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 ebf3cc80fb gattlib-py/examples/nordic_thingy: Explicitely call 'discover()' 2019-07-09 20:04:35 +02:00
Olivier Martin d7a323ccd7 gattlib-py/gattlib/device.py: Fixed returned RSSI value 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 d55898276d gattlib-py/examples: Added new Python sample 'find_eddystone' 2019-07-09 20:04:35 +02:00
Olivier Martin bca923366e gattlib-py: Added BLE Scan sample 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 531477b941 gattlib-py: Fix disconnect API 2019-07-09 11:22:20 +02:00
Olivier Martin e74543fa56 Initial Python support 2019-07-07 22:17:49 +02:00