cun
This commit is contained in:
@ -39,12 +39,12 @@
|
||||
// 是否使能测试盒 BLE Master 测试功能 (通常用于产线测试)
|
||||
#define SUPPORT_TEST_BOX_BLE_MASTER_TEST_EN 0
|
||||
// 是否显示 RX (接收) 数据速率
|
||||
#define SHOW_RX_DATA_RATE 1
|
||||
#define SHOW_RX_DATA_RATE 0
|
||||
// 是否显示 TX (发送) 数据速率
|
||||
#define SHOW_TX_DATA_RATE 1
|
||||
#define SHOW_TX_DATA_RATE 0
|
||||
|
||||
//log显示
|
||||
#define client_log 1
|
||||
#define client_log 0
|
||||
#if client_log == 1
|
||||
/* #define log_info printf */
|
||||
#define log_info(x, ...) printf("[LE_CLIENT]" x "\n", ## __VA_ARGS__) // 格式化打印日志信息,添加前缀 "[LE_CLIENT]"
|
||||
@ -304,7 +304,7 @@ static void default_report_data_deal(att_data_report_t *report_data, target_uuid
|
||||
|
||||
// 默认要匹配的远程设备名称 1
|
||||
static const u8 test_remoter_name1[] = "X100ABCDE";
|
||||
// static const u8 test_remoter_name1[] = "AC637N_MX(BLE)"; // 备选名称
|
||||
static const u8 test_remoter_name2[] = "X100_FENG";
|
||||
// static const u8 test_remoter_name2[] = "AC630N_HID567(BLE)"; //备选名称
|
||||
|
||||
// 默认的 Client 写操作使用的 Characteristic Handle
|
||||
@ -323,7 +323,7 @@ static const client_match_cfg_t match_dev01 = {
|
||||
.bonding_flag = 0,
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
// 默认的设备匹配配置 02
|
||||
static const client_match_cfg_t match_dev02 = {
|
||||
.create_conn_mode = BIT(CLI_CREAT_BY_NAME),
|
||||
@ -331,7 +331,7 @@ static const client_match_cfg_t match_dev02 = {
|
||||
.compare_data = test_remoter_name2,
|
||||
.bonding_flag = 1, // 需要绑定
|
||||
};
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
@ -383,9 +383,8 @@ static void default_event_callback(le_client_event_e event, u8 *packet, int size
|
||||
static const client_conn_cfg_t client_conn_config_default = {
|
||||
// 配置要匹配的设备,最多支持 CLIENT_MATCH_CONN_MAX 个配置
|
||||
.match_dev_cfg[0] = &match_dev01, // 使用 match_dev01 配置
|
||||
.match_dev_cfg[1] = NULL, // 备用匹配配置 1
|
||||
.match_dev_cfg[1] = &match_dev02, // 备用匹配配置 1
|
||||
.match_dev_cfg[2] = NULL, // 备用匹配配置 2
|
||||
/* .match_dev_cfg[1] = &match_dev02, */ // 注释掉的备用配置
|
||||
// 数据报告回调函数
|
||||
.report_data_callback = default_report_data_deal,
|
||||
// 要搜索的 UUID 数量
|
||||
|
||||
Reference in New Issue
Block a user