Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: missing export #8

Merged
merged 2 commits into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ Add the ble connection strategy to your project by including it in your `pubspec
dependencies:
mtrust_imp_kit: ˆ1.0.0
# Add the BLE connection strategy
urp_ble_strategy: ˆ8.0.1
mtrust_urp_ble_strategy: ˆ8.0.1
```

Please follow the instructions for configuring BLE for your respective platform in the [README](https://github.com/emdgroup/mtrust-urp/blob/main/mtrust_urp_ble_strategy/README.md) of the `urp_ble_strategy`!
Please follow the instructions for configuring BLE for your respective platform in the [README](https://github.com/emdgroup/mtrust-urp/blob/main/mtrust_urp_ble_strategy/README.md) of the `mtrust_urp_ble_strategy`!


## Usage
Expand Down
2 changes: 2 additions & 0 deletions lib/mtrust_imp_kit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ export 'package:mtrust_imp_kit/src/imp_reader.dart';
export 'package:mtrust_imp_kit/src/ui/scanning_instruction.dart';

export 'package:mtrust_urp_types/imp.pb.dart';

export 'package:mtrust_imp_kit/src/format_utils.dart';
4 changes: 2 additions & 2 deletions lib/src/imp_reader.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ class ImpReader extends CmdWrapper {
ConnectionStrategy strategy, {
String? deviceAddress,
}) async {
final connceted = await strategy.findAndConnectDevice(
final connected = await strategy.findAndConnectDevice(
readerTypes: {UrpDeviceType.urpImp},
deviceAddress: deviceAddress,
);

if (!connceted) {
if (!connected) {
throw ImpReaderException(message: 'Failed to connect to reader');
}

Expand Down
Loading