connectToBeacon method
Implementation
Future<String?> connectToBeacon(List<String> beaconList) async {
try {
print("Calling connect to beacon");
final beaconAcc =
await methodChannel.invokeMethod('connectToBeacon', beaconList);
return beaconAcc;
} on PlatformException catch (e) {
print("Failed to invoke connectToBeacon: '${e.message}'.");
}
}