test/gatt_server: control L2CAP_EVENT_CAN_SEND_NOW event

This commit is contained in:
Milanka Ringwald 2021-12-15 09:16:39 +01:00
parent 25336c9461
commit 94c4ec6b2d

View File

@ -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){
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));
}
}