Hi,
Is there a way to easily detect when the scan res is full, and a way to clear it so that your device continues discovering? Or does it not clear them until they've been processed by the application.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Which BLE STACK are you using?
There is no easy way to detect whether scan response list is full, but what you can do is to check the following parameter.
scanRes = pEvent->discCmpl.numDevs;
If it reaches the limit, then you can reduce the scan duration to get the msg return to application layer quicker.
The list will be clear every time you restart the scan
Hi Christin,
I tried reading the value of discCmpl.numDevs as suggested, but it seems to always have a value of 0 or 3. Is there anywhere specific it should be read, and anything my code needs to have in order to update the value
Hi Christin,
My goal is to immediately restart the scan as soon as it becomes full since my application gets a bunch of messages other than the ones it wants to process. So I am trying to maximize how many devices it can scan.
scan response you can check with each event at the GAP_DEVICE_INFO_EVENT. When is full restart scanning.