Hi,
Can the central device (ble_app_hrs_c
for example) scan for and connect to a custom peripheral device (not nRF based)?
Hi,
Can the central device (ble_app_hrs_c
for example) scan for and connect to a custom peripheral device (not nRF based)?
This example has pretty complex functionality as it bonds with the peer and establishes security (from what I see). Isn't it so that you've connected these two boards/FWs together once and then scanner/central looks for its peer only? I see there is whitelist used at some point which would explain that it sees only particular peer (running sensor example). If you re-flash the board, do you see different adv. reports? Have you added some NRF_LOG_xxx
right after case BLE_GAP_EVT_ADV_REPORT:
? Because if not then you won't see all reports on UART, there are logging functions only for these which matches one of conditions (specific hardcoded Adv. address, Device Name or Service UUID in Adv. data...)
This example has pretty complex functionality as it bonds with the peer and establishes security (from what I see). Isn't it so that you've connected these two boards/FWs together once and then scanner/central looks for its peer only? I see there is whitelist used at some point which would explain that it sees only particular peer (running sensor example). If you re-flash the board, do you see different adv. reports? Have you added some NRF_LOG_xxx
right after case BLE_GAP_EVT_ADV_REPORT:
? Because if not then you won't see all reports on UART, there are logging functions only for these which matches one of conditions (specific hardcoded Adv. address, Device Name or Service UUID in Adv. data...)