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

How can we distinguish two peripheral devices that have the same BASE UUID using the Central device?

Hello everybody,

I have problems with selectivity when I scan. There are 5 peripheral devices with different "DEVICE_NAME" but the same UUID and type(same "ble_uuid_t") .  For example, the names of these devices are 1, 2, 3, 4, and 5. There is also a central device and it needs to be connect to device number 2.  In this case, how do we distinguish the 2 device from the name (or any other way)? How can central device connect to the  2 device?

Parents
  • Hi,

    It sounds like you are looking for the "find_adv_name()" function in the main.c of the examples\ble_central\ble_app_hrs_c example in our SDK. The function is used in the BLE_GAP_ADV_REPORT case in ble_evt_handler() in the same file, in order to filter on the device name stored in m_target_periph_name in that example.

    Regards,
    Terje

Reply
  • Hi,

    It sounds like you are looking for the "find_adv_name()" function in the main.c of the examples\ble_central\ble_app_hrs_c example in our SDK. The function is used in the BLE_GAP_ADV_REPORT case in ble_evt_handler() in the same file, in order to filter on the device name stored in m_target_periph_name in that example.

    Regards,
    Terje

Children
No Data
Related