Commit Graph

222 Commits (eb70896c98ffe29c053e577ebb6eb85832e99d75)

Author SHA1 Message Date
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 c702d74b23 examples/ble_scan: Ensure we disconnect on error 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
Olivier Martin beed53a6ba gattlib.h: Changed prototype of 'gattlib_read_char_by_uuid' 2017-03-17 11:20:08 +01:00
Olivier Martin 80f9884ae0 gattlib.h: Introduced CREATE_UUID16() 2017-03-17 11:20:08 +01:00
Olivier Martin d0b18d5409 examples: Demonstrate gattlib notification API 2017-03-17 11:20:08 +01:00
Olivier Martin 4dde0c3698 gattlib.h: Introduced gattlib_notification_(start|stop) 2017-03-17 11:20:08 +01:00
Olivier Martin 5391388201 gattlib.h: Pass 'uuid' instead of 'handle' to 'gattlib_event_handler_t' 2017-03-17 11:20:08 +01:00
Olivier Martin 1655e8c329 gattlib.h: Hide implementation specific attributes in gatt_connection_t.context 2017-03-17 11:20:08 +01:00
Olivier Martin ee2fabaf3f Introduced 'gattlib_write_char_by_uuid' 2017-03-17 11:18:59 +01:00
Olivier Martin 74972ae011 Move UUID API to gattlib_common.c 2017-03-17 11:18:59 +01:00
Olivier Martin e880df8e01 gattlib: Added support for adapter to enable/disable scanning 2017-03-17 11:18:58 +01:00
Olivier Martin d998e0072a dbus: Make gattlib based on D-Bus 2017-03-17 11:18:55 +01:00
Olivier Martin 076067a2d7 include/gattlib.h: Remove dependency on glib.h 2017-03-14 12:51:33 +01:00
Olivier Martin ebe4e57591 Move bluez specific files to 'bluez/' directory 2017-03-14 12:51:33 +01:00
Olivier Martin 6a083a8496 examples: Use 'gattlib' pkg-config to build the examples 2017-03-14 12:17:02 +01:00
Robert-B 5b76fada47 older compiler - do not use for loops with variable decalaration 2017-03-14 12:02:19 +01:00
Olivier Martin 15ab7a84d2 Merge pull request #14 from kinemic/master
gattlib: added extern "C" {} around header
2017-03-01 12:41:08 +01:00
Jonas Böer 1434b741ec gattlib: added extern "C" {} around header 2017-03-01 12:28:36 +01:00
Olivier Martin 7417102e12 examples: Adding a new example that demonstrates BLE Nordic UART Service (NUS) 2017-02-26 16:14:17 +01:00
Olivier Martin 180f7dff54 src: Fixed data length for Notify and Indicator handler 2017-02-26 16:08:51 +01:00
Olivier Martin e11618bdeb example/read_write: Implement 'write' using characteristic's UUID 2017-02-22 12:17:53 +01:00
Olivier Martin 4ab4cddfba src/gattlib: Fixed 'gattlib_read_char_by_uuid_async()' returned error 2017-02-22 12:04:54 +01:00
Olivier Martin dfba6f53ec src/gattlib: Fixed 'gattlib_uuid_to_string()' to return the entire UUID 2017-02-22 12:04:23 +01:00
Olivier Martin ecad887c2e gattlib: Introduced 'gattlib_uuid_cmp()' 2017-02-22 12:02:47 +01:00
Olivier Martin 698561a25a README.md: Clean example code for notification printf() 2017-02-22 12:02:01 +01:00
Olivier Martin 07a4e011da bluez(4|5): Fixed ambiguity with variable names 2017-02-18 17:38:36 +01:00
Olivier Martin ed3ff0627f src/gattlib_connect: Prevent Glib warning
Fix warning as explained in this thread: http://www.spinics.net/lists/linux-bluetooth/msg67617.html
2017-02-18 17:13:35 +01:00
Olivier Martin a5d4655922 Merge pull request #9 from oliviermartin/master
bluez5: Fixed for undefined 'bswap_128'
2017-02-08 23:07:11 +01:00
Olivier Martin 671267e266 bluez5: Fixed for undefined 'bswap_128'
'bswap_128' has only be introduced in Bluez 5.29.
We use 'lib/bluetooth.h' instead of '/usr/include/bluetooth/bluetooth.h'
2017-02-08 22:47:23 +01:00
Olivier Martin 45e7a8066c Increase the level of warnings and fix few of them 2017-02-08 19:16:51 +01:00
Olivier Martin bd5d8daa92 examples/gattool: Make the code compliant with C90 2017-02-08 19:16:51 +01:00
Olivier Martin 4a0b3903fb Merge pull request #8 from oliviermartin/master
gattlib.h: Removed dependency on internal Bluez headers
2017-02-08 18:40:22 +01:00
Olivier Martin ece340a193 gattlib.h: Removed dependency on internal Bluez headers 2017-02-08 18:36:51 +01:00
Olivier Martin 21541e755c README.md: Added Bluez5 support 2017-01-31 22:42:57 +01:00
Olivier Martin 751ea82bda bluez5: Replaced 'g_io_add_watch_full' by 'gattlib_watch_connection_full' 2017-01-31 22:38:55 +01:00
Olivier Martin f1aa5b0ede examples/gatttool: Added support for Bluez5 2017-01-31 22:38:55 +01:00
Olivier Martin 98eca71225 examples/ble_scan: Add support for Bluez5 2017-01-31 22:38:55 +01:00
Olivier Martin f152b8d04e bluez5/btio: Added option BT_IO_OPT_TIMEOUT 2017-01-31 22:38:55 +01:00
Olivier Martin e802d4ab50 bluez5: Ported to Gattlib 2017-01-31 22:38:55 +01:00
Olivier Martin 9c43746ec6 gattlib: Added support for Bluez 4 and 5 2017-01-31 22:38:54 +01:00
Olivier Martin 48f3ab4e5f CMakeLists.txt: Check if we are building for Bluez 4 or 5 2017-01-31 22:38:54 +01:00
Olivier Martin 58c547fe9e Added Bluez5 support 2017-01-31 22:38:54 +01:00
Olivier Martin 1e68512f3b Renamed 'bluez' into 'bluez4' 2017-01-30 22:33:22 +01:00
Olivier Martin 9c7382b215 Reduces compilation warnings 2017-01-30 11:52:54 +01:00
Olivier Martin 7f32f5c346 README.md: Add the list of dependencies 2017-01-30 11:52:12 +01:00
Olivier Martin 3bce76b270 Merge pull request #5 from eidheim/master
Fixes #1: corrected bluetooth/uuid.h includes. Also added missing .gi…
2017-01-28 15:15:26 +01:00
eidheim 427bad8904 Fixes #1: corrected bluetooth/uuid.h includes. Also added missing .gitignore file. 2017-01-27 14:47:39 +01:00
Olivier Martin 411dc8633f Prepare new v0.2 release 2016-05-02 19:20:41 +01:00