I am not able to create a Bluetooth Device object to create a direct connection with this device, without needing the startScan method and reading its result. Any suggestion?
i am also interested in this
From what I researched here on issues, @pauldemarco believes that it is not recommended to make this type of direct connection, but here it worked, even though this code was extremely ugly:
import 'package:flutter_blue/gen/flutterblue.pb.dart' as proto;
proto.BluetoothDevice p = proto.BluetoothDevice.create();
p.name = name;
p.type = proto.BluetoothDevice_Type.LE;
p.remoteId = bleno;
return BluetoothDevice.fromProto(p);