Hi all,
i'm testing a feature of my project using the ble_app_blinky central example adapted for the nRF52840 dongle. My goal is to discover the devices that are advertising, recognize the device name and blink a led. I'm using the scan_evt_handler with the case NRF_BLE_SCAN_EVT_NOT_FOUND . In order to discover the device i'm searching in the 31 bytes of the advertising packet the device name, if the device name is found, the led is toggled.
I'm advertising with another example code every 1000ms with another dongle, and with the nRF connect app on my iPad i verify that the advertising interval is constant and correct. When i start the software on the other dongle, the software works well and the led is blinking, because the device is found correctly. After almost 10 seconds the led stops blinking and then after other 10 seconds the led restart blinking. This behavior is always repeated at more or less regular intervals.
I set the scan window and interval at the same value of 0x00B8, that corresponds to 115ms that is not a multiple of 1000 to 1010 ms. In this way i'm also scanning all the time, right?
I'm wondering why i have this behavior, i can't figure it out. There is anyone that can help me?
I'm using the nRF v17 SDK with S140.
Thanks in advance.
Salvo