|
|
|
@ -315,6 +315,10 @@ class BleServicePlugin : FlutterPlugin, MethodCallHandler, ActivityAware, |
|
|
|
val connected = BleService.startScan(uuids) |
|
|
|
result.success(connected) |
|
|
|
} |
|
|
|
"stopScan" -> { |
|
|
|
val connected = BleService.stopScan() |
|
|
|
result.success(connected) |
|
|
|
} |
|
|
|
"getDeviceInfo" -> { |
|
|
|
val address = call.argument<String>("address")?:"" |
|
|
|
val info = BleService.getDeviceInfo(address); |
|
|
|
|