Hi Sven
Direct advertisements are a bit special. Please post HCI logs in the default format to make it easier to analyse in Wireshark.
After starting the advertising, you get a LE Connection Event with Status 60 = 0x3c. The Core spec tells us:
2.57 Advertising Timeout (0x3C)
The Advertising Timeout error code indicates that advertising for a fixed duration
completed or, for directed advertising, that advertising completed without a connection
being created.
Directed advertisements have a rather short timeout, I think it's 1.28 seconds. If it didn't result in a connection, you'll get this error.
So far so good. However, BTstack then seems to set up a connection, which is wrong.
Do you have ENABLE_LE_CENTRAL set? if yes, it should bail out, but it doesn't.
We'll look into this.
What's youruse-case for directed advertisement?
Cheers
Matthias
> --
> You received this message because you are subscribed to the Google Groups "btstack-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
btstack-dev...@googlegroups.com.
> To view this discussion visit
https://groups.google.com/d/msgid/btstack-dev/ebaf4c16-054b-4276-a8f6-b18997f84d40n%40googlegroups.com.