Sometimes after a call to GAPCentralRole_StartDiscovery() the status value I receive for GAP_DEVICE_DISCOVERY_EVENT is 0x13. I haven't found anything in the forums or by searching through the code that gives me a clear understanding of what this means with regard to what went wrong during discovery.
I can say that it only seems to happen when I'm currently in a connection with and receiving heart rate data from a heart rate sensor. I don't know if other types of peripherals would cause the same behavior as I only communicate with a heart rate sensor currently.
So basically I have a gapCentralRoleEvent_t.gap.opcode that is 1 (GAP_DEVICE_DISCOVERY_EVENT) and a gapCentralRoleEvent_t.gap.hdr.status that is 0x13 (???)
If I perform 10 consecutive 1 second scans at 5 second intervals while in an active connection with a heart rate sensor half may return fine (status = 0x00), telling me the number of devices that were discovered during the scan, and the other half will return with the status of 0x13 in question.
Any help is greatly appreciated!