Part Number:SIMPLELINK-CC26X2-SDK
As I understand advertising is always disabled (GAP_EVT_ADV_END_AFTER_DISABLE) and the set is terminated (GAP_EVT_ADV_SET_TERMINATED) when a connection is established. When I use GAP_ADV_ENABLE_OPTIONS_USE_DURATION in the simple peripheral example that comes with the BLE5 SDK I recieve a GAP_EVT_ADV_END_AFTER_DISABLE and a GAP_EVT_ADV_SET_TERMINATED event(at the correct timeout) even when the connection was already established. At the GAP_EVT_ADV_SET_TERMINATED event the connhandle is 0xFF and the status is 0x43 (from the GapAdv_setTerm_t struct). On the other device I see that the connection is terminated, but I dont get a GAP_LINK_TERMINATED_EVENT event. Also, calling linkDB_NumActive still shows a connection (returns 1).
Is this known behaviour? Should I just use GapAdv_enable togehter with GAP_ADV_ENABLE_OPTIONS_USE_MAX?
Best regards