NimBLE-Arduino icon indicating copy to clipboard operation
NimBLE-Arduino copied to clipboard

preffered phy

Open chegewara opened this issue 2 years ago • 3 comments

Hi, i know its not a problem with this library, just with nimble itself, but for others i am reporting it here. This code will report always 1M_PHY, even if connection is with 2M_PHY:

uint8_t rx_phy, tx_phy;
ble_gap_read_le_phy(desc->conn_handle, &tx_phy, &rx_phy);
Serial.printf("RX: %d, TX: %d\n", rx_phy, tx_phy);

chegewara avatar Feb 28 '23 07:02 chegewara

Thanks for pointing this out. I looked at the code and it requests the info from the controller, may be a bug in the espressif controller and not NimBLE. Do you know if this works properly with Bluedroid?

h2zero avatar Feb 28 '23 16:02 h2zero

No idea, i didnt test it with bluedroid.

btw, i tested ota over ble with 2M_PHY and data are sent way too fast, the code has no chance to write on flash in time

chegewara avatar Feb 28 '23 22:02 chegewara

btw, i tested ota over ble with 2M_PHY and data are sent way too fast, the code has no chance to write on flash in time

Cool, I'll have to try that.

h2zero avatar Mar 01 '23 14:03 h2zero