89 Commits

Author SHA1 Message Date
Matthias Ringwald
8da2e96db3 sm: fix compile 2016-04-20 16:58:01 +02:00
Matthias Ringwald
8b62adc3de sm: use just works if master or slave have unknown IO capabilities 2016-04-20 16:54:17 +02:00
Matthias Ringwald
1ad129be78 sm: use uint8_t[7] instead of struct for sm_pairing_packet_t to avoid to depend on packed structs 2016-04-20 16:53:47 +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
7eb16ee8d2 att_server: drop l2cap cid for att_server_can_send_now() 2016-04-08 12:43:00 +02:00
Matthias Ringwald
4d2be80269 att_server: drop l2cap cid for att_server_can_send_now() 2016-04-08 12:41:28 +02:00
Matthias Ringwald
830ec672c1 gatt_client: drop packet handler for gatt_client_write_value_of_characteristic_without_response 2016-04-07 16:47:20 +02:00
Matthias Ringwald
b170b20f0a sm: call l2cap_request_can_send_fix_channel_now_event after failed l2cap_can_send_fixed_channel_packet_now 2016-04-07 16:27:06 +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
b06f2579d0 att_server: use att_dispatch_server_request_can_send_now_event when needed 2016-04-07 15:54:03 +02:00
Matthias Ringwald
88a48dd8bf att_server: extract att_server_handle_can_send_now 2016-04-07 15:13:56 +02:00
Matthias Ringwald
c141988c58 att_server: add con handle to send related functions 2016-04-07 14:52:50 +02:00
Matthias Ringwald
3c97b2428c att_server: fix att_can_send_now notification 2016-04-02 22:20:48 +02:00
Matthias Ringwald
13e6e052f6 pts: fix compile 2016-04-01 14:50:10 +02:00
Matthias Ringwald
0b9d7e785b don't emit X_EVENT_CAN_SEND_NOW if x_can_send_now returns false 2016-04-01 14:15:39 +02:00
Milanka Ringwald
be7cc9a0c2 use btstack_event_state_get_state 2016-04-01 12:27:13 +02:00
Matthias Ringwald
1b96b00705 att_server: add request can send now logic 2016-04-01 11:02:32 +02:00
Matthias Ringwald
6428eb5ae5 att_server: directly process ATT Write Commands 2016-03-28 15:16:54 +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
a0a9372732 ad_parser: avoid infinite loop on (illegal) chunk len of 0xff 2016-03-20 22:11:17 +01:00
Matthias Ringwald
372d62c463 att_server: handle l2cap_can_send_now events 2016-02-29 14:39:06 +01:00
Matthias Ringwald
b947e68458 att_dispatch: use hci_can_send_acl_le_packet_now to avoid warning about incorrect con handle 2016-02-29 14:37:44 +01:00
Matthias Ringwald
0e2df43f5c event: introduce hci_event_packet_get_type 2016-02-19 14:52:36 +01:00
Matthias Ringwald
591e55515a ancs_client: use btstack_packet_handler_t 2016-02-19 14:05:39 +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
e10ce42608 introduce meta event for ANCS Client events 2016-02-18 20:59:42 +01:00
Matthias Ringwald
15a95bd5aa gap: declare more hci functions as gap functions 2016-02-18 17:12:57 +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
073bd0fad0 hci: COMMAND_COMPLETE_EVENT->HCI_EVENT_IS_COMMAND_COMPLETE. COMMAND_STATUS_EVENT->HCI_EVENT_IS_COMMAND_STATUS 2016-02-11 16:12:55 +01:00
Matthias Ringwald
724d70a2cf bt_flip_addr(dest,src) -> reverse_bd_addr(src,dest) 2016-02-11 15:20:08 +01:00
Matthias Ringwald
8314c363bc introduce log_info_key and log_info_hexdump, move prototypes to btstack_debug.h 2016-02-11 14:53:59 +01:00
Matthias Ringwald
9c80e4cce8 util.h: rename swapX into reverse_x 2016-02-11 14:37:22 +01:00
Matthias Ringwald
cbabbca4a7 util.h: replace macros with static inlined functions 2016-02-11 14:02:16 +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
c9b8fdd998 fix typo in big_endian_read_32 2016-02-10 17:03:30 +01:00
Matthias Ringwald
8974fcd6cf move Bluetooth related types to bluetooth.h and BTstack types to btstack_defines.h 2016-02-10 11:35:31 +01:00
Matthias Ringwald
1b89a84bb7 use L2CAP/RFCOMM_EVENT_CAN_SEND_NOW instead of DAEMON_EVENT_HCI_PACKET_SEND 2016-02-05 22:36:46 +01:00
Matthias Ringwald
773c410630 att_dispatch: forward L2CAP_EVENT_CAN_SEND_NOW to ATT Client & Server 2016-02-05 22:19:38 +01:00
Matthias Ringwald
adbe29e86c l2cap: add fixed l2cap channel id to l2cap_can_send_fixed_channel_now 2016-02-05 21:20:17 +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