Skip to content

Commit

Permalink
新增 openLogs sendRAWDataHexStr 文档api
Browse files Browse the repository at this point in the history
  • Loading branch information
song.chao committed May 6, 2024
1 parent 96ef478 commit ae01abd
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -757,4 +757,24 @@ Example:

```dart
iminPrinter.setInitIminPrinter(true);
```


## Open Logs
- openLogs
- parameter:
- int 0 or 1 -> is open

```dart
iminPrinter.openLogs(1);
```

## Send RAW Data Hex Str
- sendRAWDataHexStr
- parameter:
- String bytes -> byte String。


```dart
iminPrinter.sendRAWDataHexStr('0A');
```
19 changes: 19 additions & 0 deletions docs/zh-cn/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -755,4 +755,23 @@ import 'package:imin_printer/enums.dart';

```dart
iminPrinter.setInitIminPrinter(true);
```

## 开启调试日志
- openLogs
- 参数:
- int 0 or 1 -> 是否开启。

```dart
iminPrinter.openLogs(1);
```

## 发送原始数据字符串
- sendRAWDataHexStr
- 参数:
- String bytes -> byte字符串。


```dart
iminPrinter.sendRAWDataHexStr('0A');
```

0 comments on commit ae01abd

Please sign in to comment.