Hello Might Lee,
I couldn't find any problem in your code.
When I tested , I was able to see it printing the advertising devices.
Do you mean you are not able to see all the BLE devices around?
Can you please double check ? Please send the logs which you are getting on your side.
My log file is in the attachment.
I grab a BLE message to describe.
This is repeated for 98 ms to send a message on the red arrow point.
But in my log file, the density received is very different.
I want to receive all the BLE message to print out.
20191111_1247.TXT.zip 479 bytes
I think I find the problem.
In wiced_bt_cfg.c the low_duty_scan_interval is too large and the low_duty_scan_window too small, resulting in insufficient scanning time, so I missed a lot of packets.
After I adjusted it, everything was as I expected.
Forgot to ask you to check that. Yes, scan interval & window settings may effect the devices reported.
For full time scanning , you can keep Scant interval & window as same.
Thanks for confirming the fix.