229 Commits

Author SHA1 Message Date
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
Matthias Ringwald
dc98f6d35d att_server.h: improve docu 2016-02-04 16:55:48 +01:00
Matthias Ringwald
65b44ffd3b sm, att_server: don't forward events from lower layers. 2016-02-04 16:47:17 +01:00
Matthias Ringwald
406722e45a sm: replace sm_register_packet_handler with sm_add_event_handler 2016-02-04 16:20:00 +01:00
Matthias Ringwald
89a78d34c5 sm: add sm_add_event_handler 2016-02-04 11:35:25 +01:00
Matthias Ringwald
c5b64319fd l2cap: don't forward HCI to l2cap packet handler. Replace l2cap_register_packet_handler with hci_add_event_handler. Fix tests 2016-02-03 21:55:36 +01:00
Matthias Ringwald
1a389cdc72 att_dispatch: don't forward HCI Events to ATT Server. ATT Server registers for HCI Events 2016-02-03 19:58:50 +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
Matthias Ringwald
ca7f8243b0 att_dispatcher: register directly for HCI Events 2016-02-03 18:31:40 +01:00
Matthias Ringwald
e03e489a86 sm: register for HCI Events directly. don't forward HCI Events to for SM protocol in l2cap 2016-02-03 17:59:00 +01:00
Matthias Ringwald
6f792faabe sm: drop HCI_STATE_WORKING hack 2016-02-03 17:42:42 +01:00