diff --git a/example/le_data_channel_client.c b/example/le_data_channel_client.c index e4a6850ef..b1c3de17f 100644 --- a/example/le_data_channel_client.c +++ b/example/le_data_channel_client.c @@ -56,6 +56,7 @@ #include "btstack.h" // #define TEST_STREAM_DATA +#define TEST_PACKET_SIZE 1000 static enum { TC_OFF, @@ -78,7 +79,7 @@ static bd_addr_type_t le_data_channel_addr_type; static hci_con_handle_t connection_handle; static btstack_packet_callback_registration_t hci_event_callback_registration; -static uint8_t data_channel_buffer[1000]; +static uint8_t data_channel_buffer[TEST_PACKET_SIZE]; /* * @section Track throughput @@ -97,7 +98,7 @@ typedef struct { hci_con_handle_t connection_handle; uint16_t cid; int counter; - char test_data[1000]; + char test_data[TEST_PACKET_SIZE]; int test_data_len; uint32_t test_data_sent; uint32_t test_data_start; @@ -297,7 +298,7 @@ static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packe break; } break; - + case L2CAP_DATA_PACKET: test_track_data(&le_data_channel_connection, size); break; diff --git a/example/le_data_channel_server.c b/example/le_data_channel_server.c index b48369f2c..bc91ac727 100644 --- a/example/le_data_channel_server.c +++ b/example/le_data_channel_server.c @@ -53,6 +53,7 @@ #include "btstack.h" #define TEST_STREAM_DATA +#define TEST_PACKET_SIZE 1000 #define REPORT_INTERVAL_MS 3000 #define MAX_NR_CONNECTIONS 3 @@ -77,7 +78,7 @@ typedef struct { hci_con_handle_t connection_handle; uint16_t cid; int counter; - char test_data[1000]; + char test_data[TEST_PACKET_SIZE]; int test_data_len; uint32_t test_data_sent; uint32_t test_data_start; @@ -86,7 +87,7 @@ typedef struct { static le_data_channel_connection_t le_data_channel_connection; static uint16_t initial_credits = L2CAP_LE_AUTOMATIC_CREDITS; -static uint8_t data_channel_buffer[1000]; +static uint8_t data_channel_buffer[TEST_PACKET_SIZE]; /* @section Main Application Setup *