btstack协议栈---总目录_bt stack是什么-CSDN博客
目录
RFCOMM连接打开后,请求RFCOMM EVENT CAN SEND NOW,通过rfcomm request can send now event()。
当我们得到RFCOMM EVENT CAN SEND NOW时,发送数据并请求另一个。
注意:要进行测试,请运行该示例,从远程设备配对,然后打开虚拟串行端口。
1.Track throughput
/*
* @section Track throughput
* @text We calculate the throughput by setting a start time and measuring the amount of
* data sent. After a configurable REPORT_INTERVAL_MS, we print the throughput in kB/s
* and reset the counter and start time.
*/
/* LISTING_START(tracking): Tracking throughput */
#define REPORT_INTERVAL_MS 3000
static uint32_t test_data_transferred;
static uint32_t test_data_start;
static void test_re