There is a way to configure scan advertisements on a single channel?
I dont want to switch channels while scanning beacons.
Seems that using a single channel goes against the spec: https://docs.silabs.com/bluetooth/latest/le-gap#cmd_le_gap_set_discovery_timing
After every scan interval, the scanner changes the frequency at which it operates. It cycles through all three advertising channels in a round robin fashion. According to the specification, all three channels must be used by a scanner.
Hope I understood your question.
You can use the following API to change the behavior
I Got it.
I will test and post the solution here after all.
Do I need to call this API while I am not changing my channel?
// Set scan interval and scan window gecko_cmd_le_gap_set_discovery_timing(le_gap_phy_coded, SCAN_INTERVAL, SCAN_WINDOW);
no, you do not have to call that API. If you don't have any specific timing/duty cycle requirements you can just let the stack use the defaults 10ms window/interval.
Ok, thank you!
Is there an API that "sends the beacon now without keeping adv alive"?
We recommend opening a new topic rather than adding a new question to an answered topic.
If you want to send a single advertisement, set maxevents parameter to 1.