Commit Graph

49 Commits (825fc4d07c233c3f7b03b204cc02e337cdf08018)

Author SHA1 Message Date
Olivier Martin 51bbc0242b example: Add example to find Eddystone in C 2020-04-07 12:29:19 +02: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 53bb794a7d examples/read_write_memory: Added read/write for demonstrating memory management 2019-07-21 20:35:57 +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 bca923366e gattlib-py: Added BLE Scan sample 2019-07-09 20:04:35 +02:00
Olivier Martin e74543fa56 Initial Python support 2019-07-07 22:17:49 +02:00
Olivier Martin 046f077085 gattlib: Move 'struct _gatt_connection_t' out of 'gattlib.h' 2019-07-07 22:17:49 +02:00
Olivier Martin 8020503ab6 gattlib: Added support for write-without-response 2019-07-05 22:50:23 +02:00
Olivier Martin 9a665239a1 examples/read_write: Clarify error message 2019-06-27 22:27:39 +02:00
Olivier Martin 028004a8a1 examples: Use GATTLIB_ error code 2019-06-27 22:27:39 +02:00
Olivier Martin 2d81b253da dbus: Add support for handle 2019-06-12 17:15:50 +02:00
Olivier Martin ceaa8a17e4 gattlib: Change gattlib_read_char_by_uuid() to return an allocated buffer that fits GATT value size 2019-05-27 22:25:46 +02:00
Olivier Martin e3ff819872 Reduce memory leaks 2019-05-21 21:40:55 +02:00
Olivier Martin c2a07a9139 Remove legacy options from `gattlib_connect()`
Legacy options can still be set from 'options' parameter.
2019-05-20 20:15:23 +02:00
Olivier Martin bcac05a811 examples/notification: Catch CTRL-C to exit properly 2019-05-03 09:47:18 +02:00
Olivier Martin f9b92018f1 examples/read_write: Print an error message rather than an assert when the GATT characteristic is not found 2019-03-05 17:15:29 +01:00
Olivier Martin cbeca9d6c0 examples/notification: Exit cleanly notification example 2019-03-05 16:39:46 +01:00
Olivier Martin 846261120c examples/read_write: Fix hexadecimal value
Found by @kwikius in #74
2019-03-05 13:29:40 +01:00
Daniel Vlasenko 7a2fdbd062 andded user data pointer gatt_connect_async signature. these data will be passed to gatt_connect_cb callback to get information about object requested connection 2018-10-18 09:10:55 +02:00
Marcus Georgi 096acbe837 explicitly link gattlib library in examples 2018-01-03 14:15:29 +01:00
Marcus Georgi 647f3d3c10 explicitly link to pthread and libpcre in examples
- omitting this causes linker errors when cross-compiling
2018-01-03 14:15:17 +01:00
Thomas Li Fredriksen d6a87e47a9 Fixed examples linker issue (missing pthread link). Added two cmake-options GATTLIB_BUILD_EXAMPLES and GATTLIB_SHARED_LIB 2018-01-03 13:45:28 +01:00
Olivier Martin 2e88aec8e1 Initial travis-ci support 2017-07-02 15:01:31 +02:00
Marcus Georgi ecc627cb8a use relative paths referencing bluez lib
- otherwise includes won't work when used as a subdir in other projects
2017-06-01 10:07:45 +02:00
Olivier Martin c702d74b23 examples/ble_scan: Ensure we disconnect on error 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 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 e880df8e01 gattlib: Added support for adapter to enable/disable scanning 2017-03-17 11:18:58 +01:00
Olivier Martin 076067a2d7 include/gattlib.h: Remove dependency on glib.h 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 7417102e12 examples: Adding a new example that demonstrates BLE Nordic UART Service (NUS) 2017-02-26 16:14:17 +01:00
Olivier Martin e11618bdeb example/read_write: Implement 'write' using characteristic's UUID 2017-02-22 12:17:53 +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 ece340a193 gattlib.h: Removed dependency on internal Bluez headers 2017-02-08 18:36:51 +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 9c7382b215 Reduces compilation warnings 2017-01-30 11:52:54 +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 f9adbe5b09 Added 'ble_scan' example 2016-05-02 19:16:29 +01:00
Olivier Martin 15defc8f7d example/gatttool: Updated notification_handler registration 2016-04-28 23:44:49 +01:00
Olivier Martin 815bc72492 examples: Added examples to demonstrate gattlib 2016-04-28 11:33:54 +01:00
Olivier Martin 17053dff9b CMakeLists.txt: Added initial CMake file 2016-04-28 00:47:06 +01:00
Olivier Martin 81ef1df6ca bluez: Copy bluez 4.101 GATT files 2016-04-27 23:56:56 +01:00