Other Parts Discussed in Thread: CC2652R
Hi,
it looks like that there is problem when using directed advertisement with public address.
If the first two bits of the address are zero, GapAdv_enable(Handle, GAP_ADV_ENABLE_OPTIONS_USE_MAX, 0) will return with error code 18 (bleIncorrectMode). The address type is PEER_ADDRTYPE_PUBLIC_OR_PUBLIC_ID.
For me it looks like that stack is analyzing these two bits although address type is PEER_ADDRTYPE_PUBLIC_OR_PUBLIC_ID.
As soon as an address is used that have any of these two bits is set to 1, the error is gone.
Cheers.........tobias.