options.ble_adv_fast_enabled = BLE_ADV_FAST_ENABLED; options.ble_adv_fast_interval = APP_ADV_INTERVAL; options.ble_adv_fast_timeout = APP_ADV_TIMEOUT_IN_SECONDS; err_code = ble_advertising_init(&advdata,NULL, &options, on_adv_evt,NULL); APP_ERROR_CHECK(err_code); } 开发者ID:vasp...
// 快速广播间隔:1600*0.625=1000ms#define DEFAULT_SLOW_ADV_INTERVAL 1600// 快速广播持续的时间:为0表示一直广播#define DEFAULT_SLOW_ADV_DURATION 0 // 配置快速广播的参数到协议栈GAP_SetParamValue( TGAP_DISC_ADV_INT_MIN, DEFAULT_FAST_ADV_INTERVAL );GAP_SetParamValue( TGAP_DISC_ADV_INT_MAX, ...
init.config.ble_adv_fast_enabled = true; init.config.ble_adv_fast_interval = adv_interval; init.config.ble_adv_fast_timeout = adv_duration; init.config.ble_adv_primary_phy = BLE_GAP_PHY_CODED; //BLE_GAP_PHY_1MBPS; init.config.ble_adv_secondary_phy = BLE_GAP_PHY_CODED; //BLE_GA...
init.config.ble_adv_fast_enabled = true;//快速广播模式 init.config.ble_adv_fast_interval = APP_ADV_INTERVAL;//广播间隔 init.config.ble_adv_fast_timeout = APP_ADV_DURATION;//广播持续时间 init.config.ble_adv_fast_timeout = 0;//广播持续时间 init.evt_handler = on_adv_evt;//广播回调 ...
scanrsp.uuids_complete.p_uuids=m_adv_uuids; memset(&options,0,sizeof(options)); options.ble_adv_fast_enabled=true; options.ble_adv_fast_interval=APP_ADV_INTERVAL; options.ble_adv_fast_timeout=APP_ADV_TIMEOUT_IN_SECONDS; err_code= ble_advertising_init(&advdata, &scanrsp, &options, ...
init.config.ble_adv_fast_enabled =true;//广播类型 init.config.ble_adv_fast_interval = APP_ADV_INTERVAL;//广播间隔 init.config.ble_adv_fast_timeout = APP_ADV_DURATION;//广播超时 init.evt_handler = on_adv_evt; err_code =ble_advertising_init(&m_advertising, &init);//初始化广播,导入参...
scanrsp.uuids_complete.p_uuids=m_adv_uuids; memset(&options,0,sizeof(options)); options.ble_adv_fast_enabled=true; options.ble_adv_fast_interval=APP_ADV_INTERVAL; options.ble_adv_fast_timeout=APP_ADV_TIMEOUT_IN_SECONDS; err_code= ble_advertising_init(&advdata, &scanrsp, &options, ...
advertising_parameter.advdata.flags = BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE; advertising_parameter.config.ble_adv_fast_enabled = true; advertising_parameter.config.ble_adv_fast_interval = ADVERTISING_INTERVAL_BEI_FAST_ADVERTISING; advertising_parameter.config.ble_adv_fast_timeout = ZEITSPANNE...
/// Minimum to maximum advertisement interval in any discoverable /// or connectable mode when user initiated: TGAP(adv_fast_interval2) /// recommended value: 100 to 150 ms; N * 0.625 #define GAP_ADV_FAST_INTV2 0x00F0 //150ms 作者最新文章 低功耗蓝牙NXP QN9020 BLE协议栈学习笔记 嵌入...
GAPRole_SetParameter (GAPROLE_ADV_EVENT_TYPE,sizeof (uint8),&advType); //设置广播间隔 { uint16 advInt = default_advertising_interval; GAP_SetParamValue( TGAP_LIM_DISC_ADV_INT_MIN,advInt ); GAP_SetParamValue( TGAP_LIM_DISC_ADV_INT_MAX,advInt ); ...