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)?
@mtudan btw.I cannot compile ble_central\ble_app_hrs_c
from nRF5 SDK v13.0.0 because code size exceeds limit in Keil for free/evaluation license but I took ble_central\ble_app_uart_c
project and by adding following code to line #422 of main.c
(right after case BLE_GAP_EVT_ADV_REPORT: {
) I can now observe load of adv. reports captured in the console.
printf("on_ble_evt(BLE_GAP_EVT_ADV_REPORT):\r\n");
if (p_gap_evt->params.adv_report.dlen > 0) {
printf("[0x%02X", p_gap_evt->params.adv_report.data[0]);
}
for(uint32_t index = 1; index < p_gap_evt->params.adv_report.dlen; index++) {
printf(":0x%02X", p_gap_evt->params.adv_report.data[index]);
}
if (p_gap_evt->params.adv_report.dlen > 0) {
printf("]\r\n");
}
@mtudan btw.I cannot compile ble_central\ble_app_hrs_c
from nRF5 SDK v13.0.0 because code size exceeds limit in Keil for free/evaluation license but I took ble_central\ble_app_uart_c
project and by adding following code to line #422 of main.c
(right after case BLE_GAP_EVT_ADV_REPORT: {
) I can now observe load of adv. reports captured in the console.
printf("on_ble_evt(BLE_GAP_EVT_ADV_REPORT):\r\n");
if (p_gap_evt->params.adv_report.dlen > 0) {
printf("[0x%02X", p_gap_evt->params.adv_report.data[0]);
}
for(uint32_t index = 1; index < p_gap_evt->params.adv_report.dlen; index++) {
printf(":0x%02X", p_gap_evt->params.adv_report.data[index]);
}
if (p_gap_evt->params.adv_report.dlen > 0) {
printf("]\r\n");
}