This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to check the paired device address

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.

Parents
  • 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.

  • HI Nabil, Thanks it works...

Reply Children
No Data
Related