hai ,
In my application to connect 5 peripherals with central and here i am connecting with device names
static char const m_target_periph_name1[] = "Nordic_Blinky1";
static char const m_target_periph_name2[] = "Nordic_Blinky2";
i am able to print the device names in BLE_GAP_EVT_ADV_REPORT
const ble_gap_evt_adv_report_t *p_adv_report = &p_gap_evt->params.adv_report;
const ble_data_t *data = &p_adv_report->data;
uint8_t *device_name = ble_advdata_parse(data->p_data, data->len, BLE_GAP_AD_TYPE_COMPLETE_LOCAL_NAME);
// int8_t report = p_ble_evt->evt.gap_evt.params.adv_report.rssi;
if(data->len == 0)
{
printf("nothing\n");
}
else{
printf("%s \r\n",device_name);
}
here my question is ,
i should get the connected name and connection id for every connection in central
how to get the connected device name and connected ID and also once it disconnected should get name the disconnected device name and id ??
regards,
sowmiya