bluetoothSerialNo method
get Serial no from connected device
Implementation
@override
Future<String?> bluetoothSerialNo() async {
btCtr = Completer();
methodChannel.invokeMethod("bluetooth.serial_no");
String? serialNo = await btCtr?.future;
if (serialNo != null) {
await DtbLinkStorage.instance.saveSerialNo(serialNo);
}
return serialNo;
}