fromIdentifier static method
Constructs a BlePhy from the integer identifier returned by the platform.
Falls back to BlePhy.le1m for any unrecognised value, which matches the behaviour of the BLE stack when an unsupported PHY is requested.
Implementation
static BlePhy fromIdentifier(int identifier) {
switch (identifier) {
case 2:
return BlePhy.le2m;
case 3:
return BlePhy.leCoded;
default:
return BlePhy.le1m;
}
}