From 1fb0b4024f4002a5c66e024729402281d40cbbae Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=BC=A0=E8=90=8C?= <494089941@qq.com>
Date: Thu, 16 Jun 2022 16:39:51 +0800
Subject: [PATCH] add printer conneted show text
---
.idea/workspace.xml | 10 +---------
.../main/java/com/dj/printer/dj_printer/AsPrint.java | 2 +-
.../main/java/com/dj/printer/dj_printer/Blutooth.java | 1 +
3 files changed, 3 insertions(+), 10 deletions(-)
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 3816787..d3293b9 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,15 +4,7 @@
-
-
-
-
-
-
-
-
-
+
diff --git a/android/src/main/java/com/dj/printer/dj_printer/AsPrint.java b/android/src/main/java/com/dj/printer/dj_printer/AsPrint.java
index eadecff..c327599 100644
--- a/android/src/main/java/com/dj/printer/dj_printer/AsPrint.java
+++ b/android/src/main/java/com/dj/printer/dj_printer/AsPrint.java
@@ -110,7 +110,7 @@ public class AsPrint {
cpclPrinter.setForm(0, 203, 203, 800, 575, 0, 1);
- cpclPrinter.setMedia(CPCLConst.LK_CPCL_LABEL);
+ cpclPrinter.setMedia(CPCLConst.LK_CPCL_BLACKMARK);
cpclPrinter.setJustification(CPCLConst.LK_CPCL_CENTER);
cpclPrinter.printBox(0, 10, 575, 790, 3);
cpclPrinter.printLine(0, 160, 570, 160, 3);
diff --git a/android/src/main/java/com/dj/printer/dj_printer/Blutooth.java b/android/src/main/java/com/dj/printer/dj_printer/Blutooth.java
index dae059a..85e66b0 100644
--- a/android/src/main/java/com/dj/printer/dj_printer/Blutooth.java
+++ b/android/src/main/java/com/dj/printer/dj_printer/Blutooth.java
@@ -54,6 +54,7 @@ public class Blutooth {
String action = intent.getAction();
if (BluetoothDevice.ACTION_ACL_CONNECTED.equals(action)) {
eventSink.success("connected");
+ System.out.println("printer connected");
} else if (BluetoothDevice.ACTION_ACL_DISCONNECTED.equals(action)) {
try {
if (bluetoothPort.isConnected()) {