GAPM_ADV_UNDIRECT complete event called without calling app_easy_gap_advertise_stop

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
2 posts / 0 new
Last post
wisilica
Offline
Last seen:10月3周前
加入:2015-03-17 08:16
GAPM_ADV_UNDIRECT complete event called without calling app_easy_gap_advertise_stop

Hi,
I am facing an issue wherein, GAPM_ADV_UNDIRECT case in gapm_cmp_evt_handler() function is invoked even without calling app_easy_gap_advertise_stop() function. Please suggest the possible reasons for the same.
由于先进nce,
Wisilica

Device:
MT_dialog
Offline
Last seen:2 months 2 weeks ago
工作人员
加入:2015-06-08 11:34
Hi wisilica,

Hi wisilica,

If you are not invoking the app_easy_gap_advertise_stop(), then apparenty something else is cancelling your advertising activity, a connection event perhaps will automatically cancel the advertising. Also you can have a look at the status of the callback or the param variable of the gapm_cmp_evt_handler struct in order to debug this, if there is a connection that cancels the advertising command then the status should be GAP_ERR_NO_ERROR if there is cancelation of the advertising command then it should be GAP_ERR_CANCELED etc.

Thanks MT_dialog