Discover BT devices if no address is provided.

This commit is contained in:
akwizgran
2018-06-22 18:13:39 +01:00
parent 8935ec2c2e
commit de611857cf
4 changed files with 114 additions and 15 deletions

View File

@@ -108,6 +108,12 @@ class JavaBluetoothPlugin extends BluetoothPlugin<StreamConnectionNotifier> {
return wrapSocket((StreamConnection) Connector.open(url));
}
@Override
@Nullable
DuplexTransportConnection discoverAndConnect(String uuid) {
return null; // TODO
}
private String makeUrl(String address, String uuid) {
return "btspp://" + address + ":" + uuid + ";name=RFCOMM";
}