[nRF Connect SDK] Connect to iOS with mac address

Target nRF52832(nrf52dk_nrf52832)
SDK NCS v2.0.0


Hello.
Recently I know that iOS cannot get BLE mac address by scan, but my project requires connection based on BLE mac.
I add bt mac adversting data using BT_DATA_LE_BT_DEVICE_ADDRESS but it failed.

I believe you have guide for iOS connection based on BLE mac.
How can we make it? Or What is good way to add ble mac address into adv data?

Thanks in advance.

Parents
  • +addition

    static const struct bt_data ad[] = {
    BT_DATA_BYTES(BT_DATA_FLAGS, (BT_LE_AD_GENERAL | BT_LE_AD_NO_BREDR)),
    BT_DATA(BT_DATA_LE_BT_DEVICE_ADDRESS, local_bda, 6),
    BT_DATA_BYTES(BT_DATA_UUID128_ALL, BT_UUID_BUS_VAL),
    };

    I could add ble mac at adv data, but it seems iOS does not show those information except for service UUID.
    Can you give me any guide?

Reply
  • +addition

    static const struct bt_data ad[] = {
    BT_DATA_BYTES(BT_DATA_FLAGS, (BT_LE_AD_GENERAL | BT_LE_AD_NO_BREDR)),
    BT_DATA(BT_DATA_LE_BT_DEVICE_ADDRESS, local_bda, 6),
    BT_DATA_BYTES(BT_DATA_UUID128_ALL, BT_UUID_BUS_VAL),
    };

    I could add ble mac at adv data, but it seems iOS does not show those information except for service UUID.
    Can you give me any guide?

Children
No Data
Related