This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

beacon config mode

Hi. I'use nrf51822 beacon kit and android nrf beacon app.

I'm modify nrf51822 beacon example source code,

I hope

1.I eliminated the button 2.After I turn on the device,into config mode automatically. 3.After the config is done, advertising.

My source code is..

bool config_mode = true;

if(config_mode)

{
    gap_params_init();

    services_init();
    advertising_init(beacon_mode_config);
    conn_params_init();
    sec_params_init();       
}
else
{
    advertising_init(beacon_mode_normal);
}    
// Start execution.
advertising_start();

for (;;)
{
    app_sched_execute();
    power_manage();
}

after turning on the device, Why I can't searching in my android app?

Rigards.

Parents
  • I finding of stuck during debug, see..

    static void advertising_start(void)
    {
    uint32_t err_code;
    err_code = sd_ble_gap_adv_start(&m_adv_params); <-pass
    APP_ERROR_CHECK(err_code); <-error, stopped.
    }
    This error is have trouble sending the parameters?

Reply
  • I finding of stuck during debug, see..

    static void advertising_start(void)
    {
    uint32_t err_code;
    err_code = sd_ble_gap_adv_start(&m_adv_params); <-pass
    APP_ERROR_CHECK(err_code); <-error, stopped.
    }
    This error is have trouble sending the parameters?

Children
No Data
Related