cancel
Showing results for 
Search instead for 
Did you mean: 

How to start and stop advertising individually with BLE_p2pServer example?

ledi7
Associate III

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?

1 REPLY 1
STTwo-32
ST Employee

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.