Hi All
I'm developing a project based on the multi role example.
Basically my device starts as a central and becomes a Peripheral after few seconds if no connection is established, then it cycles as central -> peripheral until a connection is performed.
I've implemented the PHY change on both central and peripheral, I found the CODEC PHY S2 is the one that results in the better range versus speed and power consumption, so once the connection is established, I send a PHY change request to enable this S2 PHY.
Unfortunately this PHY change request drops the connection with some BLE 4 devices.
Since BLE 4 devices only supports the legacy 1M PHY, I would like to avoid sending this PHY change request, my question is : how can I check if the connected device is BLE 4 or 5, after the connection is established ? This question is for both the central and peripheral roles ?
Thanks to all.
Jerome