I want to stop the advertisement in simpleBleperipheral project and want just one Rx window open .
Can anyone please help me do that..!!
what modification do i need to do in the code ??
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I want to stop the advertisement in simpleBleperipheral project and want just one Rx window open .
Can anyone please help me do that..!!
what modification do i need to do in the code ??
Hi Neha,
AFAIK, peripheral device is SLAVE and Central is MASTER. So in terms of BLE, a SLAVE needs to advertise all the time. This means that it is telling all the BLE devices in the vicinity that I want to make a connection (depending on the type of Advertisement - Connectable / Non-Connectable / etc.).
I guess this can make things clear for you.
Thanks,
Sunny
neha bansal64 said:Actually i want to do advertisement only when an event occurs i.e, when the peripheral recieves some signal from the central then only it should advertise.
In this mode, you can 1) enter a connection with the Central, then 2) when you receive your command (via a characteristic write, for example), you can Advertise during the connection. Please see the Peripheral+Broadcaster example on the Combo Roles wiki link.
In BLE, the only ways to receive data are to either be in a connection or scan. You could passively scan, then when data from an Advertiser is detected ,you could start advertising.
Best wishes