abrevva 0.0.5 copy "abrevva: ^0.0.5" to clipboard
abrevva: ^0.0.5 copied to clipboard

The EVVA Flutter Module is a collection of tools to work with electronical EVVA access components. It allows for scanning and connecting via BLE.

EVVA Flutter Plugin

The EVVA Flutter Module is a collection of tools to work with electronical EVVA access components. It allows for scanning and connecting via BLE.

Features #

  • 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

Requirements #

  • Flutter >=3.3.0
  • Java 17+ (Android)
  • Android SDK (Android)
  • Android 10+ (API level 29) (Android)
  • Xcode 15.4 (iOS)
  • iOS 15.0+ (iOS)

Installation #

flutter pub add @evva-sfw/abrevva-flutter

iOS #

Execute pod install inside of your projects ios/ folder.

Android #

Perform a gradle sync.

Examples #

Initialize and scan for EVVA components #

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
  );
}

Localize EVVA component #

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');

Perform disengage on EVVA components #

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,
);
1
likes
140
pub points
0%
popularity

Publisher

verified publisherevva.com

The EVVA Flutter Module is a collection of tools to work with electronical EVVA access components. It allows for scanning and connecting via BLE.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

collection, flutter, http, mocktail, parameterized_test, plugin_platform_interface

More

Packages that depend on abrevva