Hi,
im running my DK as a central of a BLE connection and i'd like to read the device_name of the peripheral board that im communication with. how do i do this? i cannot find a fieldname in the ble structures that stores it.
thank you :)
Hi,
im running my DK as a central of a BLE connection and i'd like to read the device_name of the peripheral board that im communication with. how do i do this? i cannot find a fieldname in the ble structures that stores it.
thank you :)
Hi,
There is no separate field in the struct for the name. The name can be put in the advertising data (data
field), but it is not required.
Check out the BLE multilink central example and the function adv_report_parse()
for details on how tha name can be extracted from the advertising data.
Best regards,
Jørgen
hi, thank you.
i think i want to do something else: i want to check the peripherals name that wants to connect to my central before connecting and in case of not matching a desired name declining the connection/not connecting.
i thought i can do this inside the on_ble_evt() function. am i wrong?
hi, thank you.
i think i want to do something else: i want to check the peripherals name that wants to connect to my central before connecting and in case of not matching a desired name declining the connection/not connecting.
i thought i can do this inside the on_ble_evt() function. am i wrong?