68 Commits

Author SHA1 Message Date
Matthias Ringwald
204e94f19f fix -Wshadow warnings for libusb target 2015-11-08 08:03:57 +01:00
Matthias Ringwald
80c6fa00ac store both local and remote csrk - remote incorrect optimization 2015-10-10 21:36:43 +02:00
Matthias Ringwald
8e96e3b7fd add gatt_client_pts_suppress_mtu_exchange for testing sm 2015-10-10 14:53:02 +02:00
Matthias Ringwald
c7fdde1ffc clear gatt_client_t before use 2015-10-10 14:48:10 +02:00
Matthias Ringwald
12a5e8daf6 acquire peripheral context for GATT Indications if needed 2015-10-08 16:17:53 +02:00
Matthias Ringwald
49322b26bd report gatt notifications without having a peripheral context 2015-10-08 16:05:44 +02:00
Matthias Ringwald
e3eb72c86b bugfix: report last characteristic if characteristic is last handle in query 2015-10-08 15:17:10 +02:00
Matthias Ringwald
d622771835 add gatt_client_write_long_characteristic_descriptor_using_descriptor_handle_with_offset and gatt_client_write_long_value_of_characteristic_with_offset 2015-10-05 22:30:46 +02:00
Matthias Ringwald
b8f6dc99f1 add gatt write tests - untested 2015-10-05 12:32:57 +02:00
Matthias Ringwald
5a93002a1d add gatt_client_read_multiple_characteristic_values 2015-10-02 14:59:23 +02:00
Matthias Ringwald
3f4e6e214e add gatt_client_read_value_of_characteristics_by_uuid16/128 2015-10-02 12:20:53 +02:00
Matthias Ringwald
5050a2d5f6 add gatt_client_read_long_characteristic_descriptor_using_descriptor_handler_with_offset 2015-10-01 22:16:37 +02:00
Matthias Ringwald
986515be23 add gatt_client_read_long_value_of_characteristic_using_value_handle_with_offset 2015-10-01 22:00:09 +02:00
Matthias Ringwald
62b9b53a36 add gatt_client_read_characteristic_descriptor_using_descriptor_handle and gatt_client_read_long_characteristic_descriptor_using_descriptor_handler 2015-10-01 21:09:23 +02:00
Matthias Ringwald
c647ce341a GATT Client: fix included services query with multiple rounds 2015-09-17 22:42:23 +02:00
Matthias Ringwald
5d1c139e0e gatt_client: allow writes with maximal MTU 2015-08-20 16:42:46 +02:00
Matthias Ringwald
03679531e4 sm: flip message data before calculating CMAC, also store hash result as little endian 2015-08-19 22:39:19 +02:00
Milanka Ringwald
d7d7d1e4c5 mock: set max mtu fot att connection 2015-07-03 12:36:58 +02:00
Matthias Ringwald
6508a68d38 remove useless test 2015-07-02 16:22:06 +02:00
Matthias Ringwald
3652575526 gatt_client: more log_info, forward all HCI Events to gatt subclients 2015-05-21 15:36:49 +02:00
Matthias Ringwald
3df1d63fe3 fix warnings 2015-05-13 16:07:17 +02:00
Matthias Ringwald
71de195ed3 fix c99 warnings for missing argument of functions with no arguments, fix more warnings 2015-05-13 10:30:46 +02:00
Matthias Ringwald
15ae709331 fix comparison 2015-04-26 09:46:07 +02:00
Matthias Ringwald
1ae972aa1a add check for 'can send now' in gatt_client_write_value_of_characteristic_without_response 2015-04-04 22:52:11 +02:00
matthias.ringwald@gmail.com
aa3feb0444 wait for sm_cmac to become ready instead of bailing out for signed writes 2015-03-05 15:20:26 +00:00
matthias.ringwald@gmail.com
6a0c192f28 send prepared signed write request from gatt_client_run() 2015-03-05 15:05:35 +00:00
matthias.ringwald@gmail.com
c1899d25d0 pass sign counter into CMAC calculation functions 2015-03-05 14:42:26 +00:00
mila@ringwald.ch
a0c35809ae streamline copyright headers 2015-02-06 16:19:27 +00:00
mila@ringwald.ch
2a9ce0dec0 gatt client: added MTU getter 2015-02-05 14:34:03 +00:00
matthias.ringwald@gmail.com
ef10893067 avoid crash if no gatt client context can be created 2014-12-11 18:51:10 +00:00
mila@ringwald.ch
85c40a03e4 start start timer on gatt query 2014-12-11 17:29:40 +00:00
mila@ringwald.ch
7fe7736638 added log error if peripheral mtu is not iniitalized 2014-12-03 22:33:07 +00:00
matthias.ringwald@gmail.com
66771e4d3a emit GATT_QUERY_COMPLETE for Read Characteristic Value and Read Characteristic Descriptor 2014-12-03 20:40:53 +00:00
mila@ringwald.ch
3e05add930 gtt client extended to handle multiple subclients of a peripheral 2014-10-31 15:58:44 +00:00
mila@ringwald.ch
b30d296ecf cast BTstack error 2014-10-09 20:40:29 +00:00
mila@ringwald.ch
7c40ac80c0 rewrote gatt_client state handling: API uses handles instaed of context structs (adapted examples and daemon) 2014-10-02 20:06:29 +00:00
mila@ringwald.ch
9da54300b6 use log_info instead of printf, remove trailing newline from log calls 2014-08-15 21:26:50 +00:00
matthias.ringwald@gmail.com
219eea5f01 fix compile 2014-08-14 21:31:36 +00:00
matthias.ringwald@gmail.com
e5e1518d8a add l2cap_max_le_mtu 2014-08-14 15:36:00 +00:00
matthias.ringwald@gmail.com
d27c46f584 fix compile 2014-08-11 22:00:51 +00:00
matthias.ringwald@gmail.com
f9a298a27e use l2cap_can_send_fixed_channel_packet_now 2014-08-11 21:58:44 +00:00
mila@ringwald.ch
d3b1c40fa3 renamed gatt client register handler function 2014-07-04 08:42:30 +00:00
mila@ringwald.ch
94a521cb7e gatt client: api docu 2014-07-03 13:42:30 +00:00
matthias.ringwald@gmail.com
a93597fce0 return after sending an l2cap packet 2014-07-01 22:03:40 +00:00
matthias.ringwald@gmail.com
252bfddcb7 removed obsolete include left over from testing 2014-07-01 20:07:17 +00:00
mila@ringwald.ch
f64240626f gatt client: implemented signed write 2014-06-19 22:20:43 +00:00
matthias.ringwald
baecf7ef51 fix handling of packet sent events - gatt client might have got stuck before 2014-06-10 21:41:05 +00:00
mila@ringwald.ch
3828bad997 initialized uuid16 2014-05-30 15:14:08 +00:00
matthias.ringwald@gmail.com
26e2037d23 set client for find service by uuid 2014-05-25 23:35:21 +00:00
mila@ringwald.ch
f2f517a9b0 gatt client fixed reset peripheral state 2014-05-24 00:14:05 +00:00