Hi,
I am working on the ble_app_peripheral project. I have modifed the user_app_callbacks structure in user_callback_config.h file as follows :
.app_on_adv_nonconn_complete = user_adv_stopped
Could you please suggest the possible scenarios wherein this callback would be triggered. I am aware of the fact that 2 of the scenarios are, explicit cancellation of the non connectable advertisement(using api app_easy_gap_advertise_stop) and during a connection triggered from a central device. Please explain about all the possible scenarios.
Thanks in advance,
Wisilica
Device:
Hi wisilica,
Since the device is advertising in non-connectable mode, there is no receiver activity during the advertising therefore it cannot receive any connection request, the only way, as far as i am aware, to stop the advertising (non-connectable) and get the callback to be invoked is by cancelling the command, that means that if while advertising and you issue a GAPM_CANCEL_CMD the advertising will be cancelled, so if you are experiencing something like this perhaps the code doesn't go through an app_easy_advertise_stop() but you send a GAPM_CANCEL_CMD.
Thanks MT_dialog