connect method
Future<bool>
connect(
- BluetoothDevice device, {
- String uuid = "00001101-0000-1000-8000-00805F9B34FB",
override
Implementation
@override
Future<bool> connect(BluetoothDevice device, {final String uuid = "00001101-0000-1000-8000-00805F9B34FB"}) async{
final dynamic res = await methodChannel.invokeMethod("connect",{
"address":device.address,
"uuid":uuid,
});
await cancelDiscovery();
await startDiscovery();
final bool r = res is bool && res == true;
return r;
}