byte_message 1.3.0
byte_message: ^1.3.0 copied to clipboard
Inter-chip 协议编码/解码的纯 Dart 库:提供数据包模型、常量、工具方法、编码器与解码器,支持 |Flag|Len|LenH|Cmd|Payload|Checksum| 格式。
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add byte_messageWith Flutter:
$ flutter pub add byte_messageThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
byte_message: ^1.3.0Alternatively, 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:byte_message/byte_message.dart';