datecs_fiscal_device 0.1.1 copy "datecs_fiscal_device: ^0.1.1" to clipboard
datecs_fiscal_device: ^0.1.1 copied to clipboard

Datecs fiscal device communication plugin.

Datecs Fiscal device #

A pure Dart implementation of the Datecs Fiscal Device Communication Protocol.
This package allows Flutter and Dart applications to communicate directly with Datecs fiscal devices without relying on native platform code.


Features #

  • ๐Ÿ“ก Pure Dart implementation โ€“ no platform channels required
  • ๐Ÿ”Œ Works across mobile, desktop, and embedded Dart runtimes
  • ๐Ÿงพ Support for sending fiscal commands and parsing device responses
  • ๐Ÿ› ๏ธ Extensible API for custom Datecs protocol commands
  • โšก Includes a partial implementation for one device model, but designed so you can easily extend or define your own devices and commands

๐Ÿšง Limitations #

  • Not all Datecs commands are currently implemented
  • Only one device model is partially supported out of the box
  • You can extend the package with custom device definitions or additional commands as needed

Installation #

Add the package to your pubspec.yaml:

dependencies:
  datecs_fiscal: ^0.1.0

Then install:

flutter pub get

Usage #

import 'package:datecs_fiscal/datecs_fiscal.dart';

void main() async {
  // Create a connection
  final comm = BlueCommunication();

  // Connect to the device
  await comm.connect();

  final device = BC50FiscalDevice(comm);

  // Send a simple status request
  final status = await device.getStatus();
  print('Device status: $status');

  await comm.disconnect();
}

Supported Communication #

At the moment, the package do no include any communication layer implementation. You need to provide your own communication layer that implements the Communication interface.

Disclaimer #

This package is not affiliated with Datecs Ltd.. It is an independent open-source implementation of the public fiscal communication protocol. Use at your own risk and always ensure compliance with your local fiscal regulations.

1
likes
140
points
111
downloads

Documentation

API reference

Publisher

verified publisherweareathlon.com

Weekly Downloads

Datecs fiscal device communication plugin.

Homepage

License

MIT (license)

Dependencies

flutter

More

Packages that depend on datecs_fiscal_device