STM32_WPAN BLE Stops advertising after connection
Hi,
not really an issue here, but I want to understand what goes on in my BLE project.
I'm using the B-WB1M-WPAN board, starting out from the BLE_HR_p2pSensor example.
I see that my device stops advertising after I connect to it, but I can't find in the code where that happens.
I discovered that the functions:
- Adv_Request (through api_gap_set_discoverable)
- Adv_Cancel (through api_gap_set_non_discoverable)
Are used to start and stop advertising.
I also noticed that Adv_Cancel is registered as callback for a task here:
UTIL_SEQ_RegTask(1<<CFG_TASK_ADV_CANCEL_ID, UTIL_SEQ_RFU, Adv_Cancel);
I tried to look into guides and application notes but I can't find any explanation for this behaviour, can you please help me?
