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

How to reset the advertising counter for specific mode

Hi, 

We are working with SDK 15 with the HRS freeRTOS example. we did some modification to the advertising modes so that we advertise on fast mode for 1 minute and after that we go to slow advertising with BLE_GAP_ADV_TIMEOUT_GENERAL_UNLIMITED.

As the device we are working on is a wearable we want to return to fast advertising if the button is pushed. 

We try to use the function ble_advertising_start(&m_advertising, BLE_ADV_MODE_FAST) but we get error code 8. (invalid state).

This happen regardless to the advertising state. 

Please help us understand what is the reason and what is the correct way to do this.

Thank,

Danny

Parents Reply Children
No Data
Related