This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Is advertising timeout max value 65535 on SDK 15?

Hi.

I am using nRF52840 & SDK 15.0.0.

I set the advertising slow timeout to 14 min,
But, the advertising stops at about 3 min.

The followings is summary of advertising settings.

> ble_advertising_init_t init;
> init.config.ble_adv_slow_timeout = 84000;
> ret = ble_advertising_init(&m_advertising, &init);
> APP_ERROR_CHECK(ret);

I checked SDK codes.

init.config.ble_adv_slow_timeout is uint32_t.
init.config.ble_adv_slow_timeout is copied to p_adv_params->duration at set_adv_mode_slow(...).
ble_gap_adv_params_t    * p_adv_params ->duration is uint16_t.

So, Is advertising timeout max value 65535 on SDK 15?

How to set advertising timeout to 14min?

Thanks,

Related