getPairingCode method

Future<String?> getPairingCode()

Implementation

Future<String?> getPairingCode() async {
  var btMac = await getBluetoothMac();

  if(btMac == null || btMac.isEmpty) return null;

  return '{3}B${btMac.replaceAll(":", "").toUpperCase()}';
}