hai ,
i my application i should connect 5 more peripherals with one central .
at first i connected with peripherals mac id , mac id hard coded in central
in central with the scan report ,when scanned peer address equals with stored mac id then i connected with below api . i can able to connect two more peripherals at same time
static uint8_t m_first_relay[BLE_GAP_ADDR_LEN] = {0x4B, 0x28, 0x21, 0x9D, 0x3F, 0xD0};
static uint8_t m_relay_addr2[BLE_GAP_ADDR_LEN] = {0x26 ,0x76, 0x05, 0x6B, 0x23, 0xCC};
if(p_ble_evt->evt.gap_evt.params.adv_report.peer_addr.addr[0] == 0x4B || p_ble_evt->evt.gap_evt.params.adv_report.peer_addr.addr[0]== 0x26) {
sd_ble_gap_scan_stop();
err = sd_ble_gap_connect(&p_ble_evt->evt.gap_evt.params.adv_report.peer_addr, &m_scan.scan_params, &m_scan.conn_params, APP_BLE_CONN_CFG_TAG);
}
now i need to connect with m_target_periph_name[]
how to connect with more peripherals in central with using device name??
static char const m_target_periph_name[] = "Nordic_Blinky"; /**< Name of the device to try to connect to. This name is searched for in the scanning report data. */
same name with peripheral device name , mow i can be able to connect
but for multiple connections tried like this,
static char* const m_target_periph_name[2] = {"Nordic_Blinky", "Nordic_Blinky1"};
if i used as above no connection is getting connected ,
could you please tell me how to connect with multiple peripherals on central using device name??
Regards,
sowmiya