Tool/software:
I have a project using limited ADV duration, after the duration expires the BLEAPPUTIL_ADV_END_AFTER_DISABLE event will be invoked. Meanwhile when a connection is established, BLEAPPUTIL_ADV_END_AFTER_DISABLE event will also be invoked. Is there a way to tell this event is invoked because of the expiration of ADV duration or the connection establishment?
The reason I want to seperate the event is that I have different functions to call in these different cases. For example, I will call function A after ADV duration expires, and call function B after connection establishes. However since BLEAPPUTIL_ADV_END_AFTER_DISABLE event is always ahead of BLEAPPUTIL_LINK_ESTABLISHED_EVENT, function A will always be called regardlessly. What's the suggested approach to handle this use case?
Best regards,
Shuyang