identifier property

int get identifier

The integer identifier used when communicating this PHY over the method channel.

These values correspond directly to the Android BluetoothDevice PHY constants and are used as-is when calling the native API.

  • LE 1M → 1
  • LE 2M → 2
  • LE Coded → 3

Implementation

int get identifier {
  switch (this) {
    case BlePhy.le1m:
      return 1;
    case BlePhy.le2m:
      return 2;
    case BlePhy.leCoded:
      return 3;
  }
}