bc108 0.1.0 copy "bc108: ^0.1.0" to clipboard
bc108: ^0.1.0 copied to clipboard

outdated

Implementation of the 'Biblioteca Compartilhada' v1.08 specification.

codecov.io

bc108 #

Dart implementation of the specification 'Biblioteca Compartilhada v1.08a'.

Disclaimer: this library does not care about the the physical layer of the communication. In other words, you should be able to open a stream to the pinpad by yourself either by bluetooth, serial port, tcp/udp sockets or any other communication port.

Usage #

import 'package:bc108/bc108.dart';

// Connect to your pinpad and acquire a stream and a sink of int (byte)
Stream<int> stream = ...;
Sink<int> sink = ...;

final pinpad = Pinpad.fromStreamAndSink(stream, sink);

final dr = await _pinpad.display(DisplayRequest("Hello" /* first line */, "World!" /* second line */));
print("📺 Command Status: ${dr.status}");

final tr = await _pinpad.getTimestamp(GetTimestampRequest(3 /* acquirer 3 */));
print("🕐 Command Status: ${tr.status}");
print("🕐 The timestamp is ${tr.data.timestamp}");

Commands #

  • open (not applicable)
  • close (not applicable)
  • display
  • displayEx
  • startGetKey / getKey
  • startGetPIN / getPIN
  • startRemoveCard / removeCard
  • startGenericCmd / genericCmd
  • startCheckEvent / checkEvent
  • startGetCard / getCard / resumeGetCard
  • startGoOnChip / goOnChip
  • finishChip
  • chipDirect
  • changeParameter
  • getInfo (general information only)
  • encryptBuffer
  • tableLoadInit
  • tableLoadRec
  • tableLoadEnd
  • getDUKPT
  • getTimeStamp
  • defineWKPAN
0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

Implementation of the 'Biblioteca Compartilhada' v1.08 specification.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

async, collection, flutter, matcher

More

Packages that depend on bc108