Hi there,
I tried to make simple_observer scan endless but seems it still needs restart scan process manually.
Here is what I have done:
First solution:
1. modify below:
// Maximum number of scan responses #define DEFAULT_MAX_SCAN_RES 0 // Scan duration in ms #define DEFAULT_SCAN_DURATION 0
2. I can not get GAP_DEVICE_INFO_EVENT event.
I expected to get this message to parse beacon information.
The second solution, so I only get 8 GAP_DEVICE_INFO_EVENT message then I must restart the scan process manually.
It's not scanning forever.
// Maximum number of scan responses #define DEFAULT_MAX_SCAN_RES 8 // Scan duration in ms #define DEFAULT_SCAN_DURATION 0
Any suggestions to make scan forever no need restart? and get GAP_DEVICE_INFO_EVENT
PS, I have referenced "Scanning Task 3 - Scan Indefinitely" document, seems no help.
B.R.
Leo