This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

connecting the peripherals using mac address by central

Hi.. i am using nRF52832  ... 15.2 sdk Version. i'm trying to communicate between a central device and a peripheral.so if multiple peripherals are present and all of their mac id is known.how can i select a particular peripheral to connect by using central not via mobile app. 

Parents
  • Look at the description of nrf_ble_scan_filter_set().

    I believe you want to call:

    Where my_addr is:

  • Thankyou even though i am getting fatal error .I checked by breakpoint ,in this line i am getting fatal error ,I  think i need to modify or configure 

Reply
  • Thankyou even though i am getting fatal error .I checked by breakpoint ,in this line i am getting fatal error ,I  think i need to modify or configure 

Children
  • Define "DEBUG" in your preprocessor defines. Then it should print what nrf_ble_scan_filter_set() returns if it doesn't return NRF_SUCCESS. What does it return?