|
|
|
@ -305,6 +305,12 @@ class BleServicePlugin : FlutterPlugin, MethodCallHandler, ActivityAware, |
|
|
|
Log.d(TAG, "getDeviceInfo $info") |
|
|
|
result.success(info) |
|
|
|
} |
|
|
|
"getDeviceList" -> { |
|
|
|
val deviceName = call.argument<String>("deviceName")?:"" |
|
|
|
val infos = BleService.getDeviceInfos(deviceName); |
|
|
|
Log.d(TAG, "getDeviceList $infos") |
|
|
|
result.success(infos) |
|
|
|
} |
|
|
|
"disconnect" -> { |
|
|
|
BleService.disconnect(); |
|
|
|
result.success(null) |
|
|
|
|