Hi,
Can anyone guide me to get the paired device address and how can I recheck device address when every time the device comes in to nearby central.
Hi,
Can anyone guide me to get the paired device address and how can I recheck device address when every time the device comes in to nearby central.
With S132 SDK11 I'm using :
case BLE_GAP_EVT_CONNECTED: {
err_code = bsp_indication_set(BSP_INDICATE_CONNECTED);
APP_ERROR_CHECK(err_code);
//Connected device
ble_gap_addr_t addr;
memcpy(addr.addr, p_ble_evt->evt.gap_evt.params.connected.peer_addr.addr, 6);
for (i = 0; i < 6; ++i) {
addr_connected[i] = addr.addr[i];
}
i=0;
adrr_type = p_ble_evt->evt.gap_evt.params.connected.peer_addr.addr_type;
to get the adress and addr_type of connected devices.
With S132 SDK11 I'm using :
case BLE_GAP_EVT_CONNECTED: {
err_code = bsp_indication_set(BSP_INDICATE_CONNECTED);
APP_ERROR_CHECK(err_code);
//Connected device
ble_gap_addr_t addr;
memcpy(addr.addr, p_ble_evt->evt.gap_evt.params.connected.peer_addr.addr, 6);
for (i = 0; i < 6; ++i) {
addr_connected[i] = addr.addr[i];
}
i=0;
adrr_type = p_ble_evt->evt.gap_evt.params.connected.peer_addr.addr_type;
to get the adress and addr_type of connected devices.