|
发表于 2015-8-4 10:30:07
只看该作者
13#
nt app_gap_set_mode_req_cmp_evt_handler(ke_msg_id_t const msgid, struct gap_event_common_cmd_complete const *param,
ke_task_id_t const dest_id, ke_task_id_t const src_id)
{
app_task_msg_hdl(msgid, param);
switch (ke_state_get(dest_id))
{
case APP_INIT:
//#if QN_DEMO_AUTO luhong 2015.8.3
// Created DB should has been finished by each profile service,
// Start Adv mode automatically here
app_gap_adv_start_req(GAP_GEN_DISCOVERABLE|GAP_UND_CONNECTABLE,
app_env.adv_data, app_set_adv_data(GAP_GEN_DISCOVERABLE),
app_env.scanrsp_data, app_set_scan_rsp_data(app_get_local_service_flag()),
GAP_ADV_FAST_INTV1, GAP_ADV_FAST_INTV2);
//#endif
不需要按键照样可以进入广播状态 |
|