mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-30 06:32:43 +00:00
test/gatt_server: control L2CAP_EVENT_CAN_SEND_NOW event
This commit is contained in:
parent
25336c9461
commit
94c4ec6b2d
@ -274,6 +274,8 @@ void att_dispatch_server_mtu_exchanged(hci_con_handle_t con_handle, uint16_t new
|
||||
}
|
||||
|
||||
void att_dispatch_server_request_can_send_now_event(hci_con_handle_t con_handle){
|
||||
uint8_t event[] = { L2CAP_EVENT_CAN_SEND_NOW, 2, 1, 0};
|
||||
att_server_packet_handler(HCI_EVENT_PACKET, 0, (uint8_t*)event, sizeof(event));
|
||||
if (l2cap_can_send_fixed_channel_packet_now_status){
|
||||
uint8_t event[] = { L2CAP_EVENT_CAN_SEND_NOW, 2, 1, 0};
|
||||
att_server_packet_handler(HCI_EVENT_PACKET, 0, (uint8_t*)event, sizeof(event));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user