modbus_codec 0.1.4
modbus_codec: ^0.1.4 copied to clipboard
Transport-agnostic Modbus RTU codec for Dart. Encode request frames and decode raw response bytes into typed values over BLE, serial, or TCP.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add modbus_codecWith Flutter:
$ flutter pub add modbus_codecThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
modbus_codec: ^0.1.4Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:modbus_codec/modbus_codec.dart';