7 years, 6 months ago.

when i use set advertising timeout... how to get it to advertise again

when i use ble.gap().setAdvertisingTimeout(1); I set it for 1 second, but it never starts advertising again. What am i missing? Do i need a loop to call the ble.init() after the timeout? I used this time on other platforms and did not have to, so i figure I ma using it incorrectly.

than you

1 Answer

7 years, 5 months ago.

Hi Jimmy,

I think you'll want to use ble.gap().setAdvertisingInterval(1000); instead. Here's some example code: https://github.com/ARMmbed/mbed-os-example-ble/blob/master/BLE_Beacon/source/main.cpp

- Jenny, team Mbed

Accepted Answer