set Advertising Timeout Properly

20 Mar 2018

Can some give an example of how to use the adv timeout correctly. When I use ble.gap().startAdvertising(2); I was thinking it would stop the advertising for 2 seconds and then resume. It does not resume. Any suggestions? I am assuming it needs to initiate the advertising cycle again but I am uncertain how to do that. Another platform i used for beacons allowed me to use intervals and timeouts for advertising and I did not have to do anything additional it advertised for the interval ...stopped during the timeout interval and kept repeated as expected.

thanks