Hi dialog Dynamic broadcast after the broadcast, why can't connect, a connection terminal is crashed, but if have been broadcast dynamic data is ok, as long as don't connect events.
Hi dialog: Because the code is large, I put the process probably and you said it.In broadcast function open APP_ADV_TIMER timer, timing time of 1 s, 1 s time, stop broadcasting.After the gapm_cmp_evt_handler (ke_msg_id_t const msgid, Struct gapm_cmp_evt const * param, Ke_task_id_t const dest_id, Ke_task_id_t const src_id) App_adv_undirect_complete function calls a function according to the news, as long as in pp_adv_undirect_complete this function, and add the app_adv_start ();Function, can appear connection crash phenomenon.Trouble you help to analyze
Normal is ok.You can upload your modification project code?
Hi dialog:
Here is my modified demon code?Please analyse the reason. Thanks.
Hi dialog:
Because the code is large, I put the process probably and you said it.In broadcast function open APP_ADV_TIMER timer, timing time of 1 s, 1 s time, stop broadcasting.After the gapm_cmp_evt_handler (ke_msg_id_t const msgid,
Struct gapm_cmp_evt const * param,
Ke_task_id_t const dest_id,
Ke_task_id_t const src_id)
App_adv_undirect_complete function calls a function according to the news, as long as in pp_adv_undirect_complete this function, and add the app_adv_start ();Function, can appear connection crash phenomenon.Trouble you help to analyze
Int app_adv_timer_handler (ke_msg_id_t const msgid,
Void const * param,
Ke_task_id_t const dest_id,
Ke_task_id_t const src_id)
{
App_adv_stop ();
Return (KE_MSG_CONSUMED);
}
Void app_adv_undirect_complete (uint8_t status)
{
Ke_timer_clear (APP_ADV_TIMER TASK_APP);
App_adv_start ();
The return;
}
Void app_adv_undirect_complete (uint8_t status)
{
/ / ke_timer_clear (APP_ADV_TIMER TASK_APP);/ / into the timer function
If (status = = GAP_ERR_CANCELED)
{
App_adv_start ();
}
The return;
}