You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
PatientApp-KKUMC/lib/viatom_ble/ble_connect.dart

20 lines
469 B
Dart

import 'package:flutter/services.dart';
class BleChannel {
static const platform = MethodChannel('BLE-Platform-Bridge');
//BLE-Platform-Bridge
static Future<String> getScanningResult() async {
try {
print("----------Flutter Init -------");
final String result = await platform.invokeMethod('scan');
print("----------Flutter Result -------");
print(result);
return result;
} catch (e) {
return "Error: $e";
}
}
}