2025-05-08 1:20 AM
Hi,
i am using NUCLEO-WBA55 with the BLE_p2pServer example from firmware package.
Here for example in file app_ble.c is a define statement
#define ADV_TIMEOUT_MS (60 * 1000)
and this ends the advertising after 60 seconds.
However, I would like to start and stop the advertising individually with a command, for example.
Can someone explain to me how I can do this?
2025-05-08 2:01 AM
Hello @ledi7
To start the advertising, you can use the "ACI_GAP_SET_DISCOVERABLE " command. And to stop it, you can use the "ACI_GAP_SET_NON_DISCOVERABLE" command. More details available on the paragraphs 2.4.1 and 2.4.3 of the AN5270 - Rev 30.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.