The EVVA Flutter Plugin is a collection of tools to work with electronical EVVA access components. It allows for scanning and connecting via BLE.
- BLE Scanner for EVVA components in range
- Localize EVVA components encountered by a scan
- Disengage EVVA components encountered by a scan
- Read / Write data via BLE
- Flutter >=3.3.0
- Java 17+ (Android)
- Android SDK (Android)
- Android 10+ (API level 29) (Android)
- Xcode 15.4 (iOS)
- iOS 15.0+ (iOS)
flutter pub add @evva-sfw/abrevva-flutter
Execute pod install
inside of your projects ios/ folder.
Perform a gradle sync.
To start off first import the abrevva
Package
import 'package:abrevva/abrevva.dart';
async function scanForBleDevices(androidNeverForLocation: Boolean = true, timeout: Number) {
await AbrevvaBle.initialize(androidNeverForLocation);
AbrevvaBle.requestLEScan(
RequestBleDeviceParams(),
(scanResult: ScanResult) => {
console.log(`Discovered Device: ${scanResult.bleDevice.deviceId}`);
},
10_000
);
}
With the signalize method you can localize EVVA components. On a successful signalization the component will emit a melody indicating its location.
const success = await AbrevvaBle.signalize('deviceId');
For the component disengage you have to provide access credentials to the EVVA component. Those are generally acquired in the form of access media metadata from the Xesar software.
const status = await AbrevvaBle.disengage(
'mobileId',
'mobileDeviceKey',
'mobileGroupId',
'mobileAccessData',
false,
);