Cypress may have better advice (since it is their chip after all :), but from what I've seen so far, stopping then restarting the advertisement might be the simplest method to achieve what you want. Or, you could handle the timeout event itself, and restart to an advertisement of the difference in time that "should still be left" from the application viewpoint.
1 of 1 people found this helpful
E.Pratt is correct. If advertising is in progress and you want to change any adv parameters , you have to stop adverting and start again.
Hi e.pratt and Anjana,
Thanks for the advice! I have implemented your recommendation and it works.
I make a call to CyBle_GappExitDiscoveryMode() and wait for the CYBLE_EVT_GAPP_ADVERTISEMENT_START_STOP event to indicate that advertising has stopped and then I make a call to CyBle_GappStartAdvertisement(CYBLE_ADVERTISING_FAST) to restart advertising.