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

How to get Central name and unique UUID?

Hi all,

I use nRF52832 with the UART peripheral example.

I need to get the name and unique UUID of the Central I'm connecting to (after connection).

The Central can either be Android, iOS or nRF52832 with the Central code of the UART example.

I use SDK V15.0.0 and Softdevice V 6.0.0

How do I go about doing that?

I'm am new to BLE and my knowledge is limited, specific detailed answers will be greatly appreciated.

Thank you

Parents Reply
  • What do you mean by "anything else is running"? I execute the code in the BLE_GAP_EVT_CONNECTED event in ble_evt_handler after the execution of nrf_ble_qwr_conn_handle_assign.

    I tried also executing the code in main, right after BLE_GAP_EVT_CONNECTED event, before any data exchange is happening.

    Do I look for BLE_GATTC_EVT_CHAR_VAL_BY_UUID_READ_RSP event in ble_evt_handler() function?

    Thanks.

Children
No Data
Related