hi, i want to advertise packet every interval of 5min. how can i start and stop advertise packet.
hi, i want to advertise packet every interval of 5min. how can i start and stop advertise packet.
Hi,
The Bluetooth Specification specifies that the advertising interval should be between 20 ms to 10.24 sec. If you want to be compliant with the BLE Specification, I recommend that you don't try to exceed these limits.
That said, you can stop the advertising with the function sd_ble_gap_adv_stop()
, and using the advertising module you can start with the function ble_advertising_start()
, or directly with sd_ble_gap_adv_start()
. You can then set-up a app_timer to control when you want to advertise.
thanks sigurd
why it's maximum advertising interval is 10.24sec?
i got it why it's maximum advertising interval is 10.24 sec. in BLE stack advertising interval is 2 octets means 16 bit and unit is 0.625msec. so we can set maximum 10.24 sec. this is right??
The longer advertising interval you have, the longer time it will be for the central to find the peripheral. The max time have therefore been set to 10.24 sec(0x4000).
Here is a picture from the BLE spec core 4.2 page 1278: