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

Way to get the current physical link speed?

Hi. I am developing based on the multi-link central example. In the below code the PHY is set to BLE_GAP_PHY_AUTO.

I don't know if my example therefore is running at 1Mbps or 2Mbps? Is there a way to call a function to find out?

Also why is this set to auto in the example rather than 2Mbps (which would get the best throughput)?

Thanks

        case BLE_GAP_EVT_PHY_UPDATE_REQUEST:
        {
            NRF_LOG_DEBUG("PHY update request.");
            ble_gap_phys_t const phys =
            {
                .rx_phys = BLE_GAP_PHY_AUTO,
                .tx_phys = BLE_GAP_PHY_AUTO,
            };
            err_code = sd_ble_gap_phy_update(p_ble_evt->evt.gap_evt.conn_handle, &phys);
            APP_ERROR_CHECK(err_code);
        } break;

Related