Description
Trying to sync to several peers who use periodic advertising. Sync to single peer works.
Then I try to use Gap::addDeviceToPeriodicAdvertiserList and Gap::createSync to the list.
But Gap::addDeviceToPeriodicAdvertiserList always return BLE_ERROR_INVALID_PARAM after checking peerAddressType even if I provide proper peer address type.
I took a look in the code and found this:
if (peerAddressType != PeerAddressType_t::PUBLIC || peerAddressType != PeerAddressType_t::RANDOM ) { return BLE_ERROR_INVALID_PARAM; }
at /features/FEATURE_BLE/source/generic/GenericGap.tpp
This will always return BLE_ERROR_INVALID_PARAM even if you provide proper PUBLIC or RANDOM peer address type.
After fixing this if statement, sync to the list does not work, after createSync called there are no events at all, no timeouts, nothing.
Target is NRF52840 custom board. Mbed 5.13.
Issue request type
[ ] Question
[ ] Enhancement
[ x] Bug