Hi, I am using SDK 5.0.3
In app_default_handlers.c, the functiondefault_app_on_connection(...)checks ifuser_default_hnd_conf.adv_scenario==DEF_ADV_WITH_TIMEOUTand then callsapp_easy_gap_advertise_with_timeout_stop(), then it callsdefault_advertise_stop_operationwhich does the same thing...
Is there a real reason for that?
Best,
Oren
Device:

嗨矿石n,
Indeed this is duplicated code, its a known issue and the default_advertise_stop_operation() will be removed in a next SDK release.
Thanks MT_dialog