Milanka Ringwald
9cb80b17e9
gat_client: rename status to att_status in GATT_EVENT_QUERY_COMPLETE event, add and use ATT_ERROR_SUCCESS instead of 0 status code
2019-09-25 09:25:38 +02:00
Matthias Ringwald
a0e0c2be34
gatt_client: add missing {} to error handing with ENABLE_GATT_CLIENT_PAIRING
2019-09-19 14:34:47 +02:00
Matthias Ringwald
e501bae083
Use BTSTACK_FILE__ without __ prefix (MISRAC2012-Rule-21.1)
2019-05-11 19:31:55 +02:00
Matthias Ringwald
64b12680ce
gatt_client: emit query complete for signed write
2019-05-01 20:30:37 +02:00
Matthias Ringwald
793cf6ce5d
gatt_client: wait until identity resolving complete for signed write, emit GATT_EVENT_QUERY_COMPLETE with ATT_ERROR_BONDING_INFORMATION_MISSING if not bonding information is available
2019-05-01 18:18:27 +02:00
Matthias Ringwald
6fff232482
remove explicit memset call for buffers from btstack_memory
2018-11-23 17:41:43 +01:00
Milanka Ringwald
1b93b0cf97
cleanup: remove unused std libs
2018-11-13 09:39:07 +01:00
Matthias Ringwald
cce308d626
gatt_client: stop timer on disconnect - fixes use after free / crash
2018-09-11 08:32:03 +02:00
Matthias Ringwald
abdc9fb59b
gatt_client: ENABLE_GATT_FIND_INFORMATION_FOR_CCC_DISCOVERY use ATT Find Information instead of Read By Type
2018-08-27 16:35:28 +02:00
Matthias Ringwald
f4b33574b8
gatt_client: if ENABLE_GATT_CLIENT_PAIRING, GATT Client starts pairing and retry operation on security error
2018-05-18 11:22:37 +02:00
Matthias Ringwald
d1e1a57fd3
gatt_client: wait until central re-encryption is complete
2018-05-14 17:34:37 +02:00
Matthias Ringwald
0074810566
gatt_client: remove inline attribute from small functions that cause compiler warning about inlining being inefficient
2018-04-20 12:28:25 +02:00
Matthias Ringwald
0fbf59a1c1
gatt_client: fix handling of ATT_EVENT_MTU_EXCHANGE_COMPLETE
2018-02-19 15:21:21 +01:00
Matthias Ringwald
ae1d123737
gatt_client: check if hci connection for given con handle exists
2018-02-09 17:41:58 +01:00
Matthias Ringwald
47181045ae
gatt_client: add gatt_client_request_can_write_without_response_event()
2018-02-01 15:17:03 +01:00
Matthias Ringwald
45f2a74090
gatt_client: requeue gatt client after send for fairness
2018-02-01 11:40:58 +01:00
Matthias Ringwald
544128c36f
gatt_client: extract gatt_client_run_for_peripheral, don't abort gatt_client_run if one gatt client is in SENT_MTU_EXCHANGE state, request can_send_now when sending any packet
2018-02-01 11:32:42 +01:00
Matthias Ringwald
838e632c8e
gatt_client: drop gatt_client_pts_suppress_mtu_exchange function, replaced by gatt_client_mtu_enable_auto_negotiation(0)
2018-01-30 19:12:48 +01:00
Jakob Krantz
5cf6c43447
gatt_client: Adds configuration for when or if a MTU negotiation should be made.
...
- Disable automatic MTU negotiation for gatt_client. Add method to manually
send a MTU negotiation
2018-01-30 19:12:48 +01:00
Jakob Krantz
b12646c53b
att_dispatch: Propogate MTU update to both att_server and gatt_client.
...
According to the BT 5.0 spec. A MTU negotiation shall only be required in one
direction. I.e. We must propogate the negotiated MTU between gatt_client
and att_server.
2018-01-30 19:12:33 +01:00
Jakob Krantz
8f37572a30
Adds missing emit of GATT_EVENT_MTU when the MTU has changed.
2018-01-30 18:52:21 +01:00
Jakob Krantz
b489552907
Fixes bug where the descriptor UUID16 was not set even thought it had one.
...
When deserializeing a characteristic_descriptor the UUID16 wouldn't be set even
thought it had an 16 bit UUID. This adds check to see if the descriptor has a
UUID16, if so, we read the UUID16 and set it to the gatt_client_characteristic_descriptor_t.
2018-01-30 17:02:31 +01:00
Matthias Ringwald
1ac26e06cb
bnep: review UNUSED-size
2017-09-20 10:43:22 +02:00
Matthias Ringwald
1f734b5f46
gatt_client: add gatt_client_stop_listening_for_characteristic_value_updates
2017-07-14 12:32:06 +02:00
Matthias Ringwald
ab2c6ae4b7
tool: add update_filename.py that adds __BTSTACK_FILE__ to every .c file for use with debug output instead of __FILE__
2017-03-24 23:39:20 +01:00
Matthias Ringwald
7a766ebf4f
LE: require ENABLE_LE_SIGNED_WRITE for ATT/GATT Signed Writes
2017-01-13 18:56:26 +01:00
Matthias Ringwald
9ec2630ce4
fix unused parameters warning
2016-12-22 22:16:16 +01:00
Matthias Ringwald
fac60fea7b
fix compile
2016-09-29 16:06:01 +02:00
Matthias Ringwald
4dfd504ad1
sm: sm_cmac_start -> sm_cmac_signed_write
2016-06-20 11:34:56 +02:00
Matthias Ringwald
b6e003bca9
gatt: log gatt client events to hci_dump
2016-06-07 16:13:38 +02:00
Matthias Ringwald
86c3855949
gatt_client: store notification callback, fix characteristic serialization. ancs_client: also listen for notification source notifications
2016-04-08 22:51:52 +02:00
Matthias Ringwald
51764b3b24
gatt_client: use att_dispatch_client instead of att_dispatch_server functions
2016-04-07 16:26:03 +02:00
Matthias Ringwald
de9f8e94a8
gatt_client: drop packet handler for gatt_client_write_value_of_characteristic_without_response
2016-04-07 16:02:48 +02:00
Matthias Ringwald
59c6af158d
add classic/core.h and ble/core.h, add ENABLE_CLASSIC where missing
2016-03-28 12:45:43 +02:00
Matthias Ringwald
0e2df43f5c
event: introduce hci_event_packet_get_type
2016-02-19 14:52:36 +01:00
Matthias Ringwald
fc64f94a83
use hci_con_handle_t more
2016-02-19 13:57:49 +01:00
Matthias Ringwald
711e6c8033
use hci_con_handle_t more
2016-02-19 11:24:51 +01:00
Matthias Ringwald
313e337b78
event: support Service, Characteristic, Characteristic Descriptor in event generator needed for GATT Events. use new getter in examples
2016-02-18 16:16:46 +01:00
Matthias Ringwald
6ba2ad2202
gatt_client: extract functions to deserialize gatt client structs and provide in gatt_client
2016-02-18 15:46:17 +01:00
Matthias Ringwald
d25c33e5a2
gatt_client: prefix gatt structs with gatt_client
2016-02-18 15:29:33 +01:00
Matthias Ringwald
d8e8f12ab0
gap.h: use gap_ instead of le_central_ or gap_le_
2016-02-12 17:04:41 +01:00
Matthias Ringwald
9c662c9bc0
gatt_client: drop subclient struct and id. pass in callback for requests. new gatt_client_listen_for_characteristic_value_updates for notifications and indications with client provided storage
2016-02-12 14:22:33 +01:00
Matthias Ringwald
591423b2a5
att -> att_db
2016-02-11 21:23:06 +01:00
Matthias Ringwald
9c80e4cce8
util.h: rename swapX into reverse_x
2016-02-11 14:37:22 +01:00
Matthias Ringwald
e1a125df32
util.h: new names uuid_has_bluetooth_prefix();uuid_add_bluetooth_prefix()
2016-02-10 17:12:50 +01:00
Matthias Ringwald
19448c0b45
att_dispatch: wrap calls to l2cap_can_send_fixed_channel for att client/server
2016-02-05 21:15:37 +01:00
Matthias Ringwald
b6e96f1452
gatt_client: use btstack_packet_handler instead of (*fn)(type,packet,size) for events
2016-02-04 17:58:00 +01:00
Matthias Ringwald
d9a7306a10
hci/sm: use btstack_packet_handler instead of (*fn)(type,packet,size) for events
2016-02-04 17:45:02 +01:00
Matthias Ringwald
f3abff6765
gatt_client: don't forward lower layer events to own clients
2016-02-04 17:06:35 +01:00
Matthias Ringwald
361b1363b7
att_dispatch: don't forward HCI Events to ATT Client. GATT Client register for HCI Events
2016-02-03 18:36:45 +01:00