From aac20b696df9d39535f853fe34dbec0b6de9c057 Mon Sep 17 00:00:00 2001 From: Jay Date: Wed, 23 Aug 2017 22:32:15 +0800 Subject: [PATCH] fix characteristic uuid change --- app/src/main/java/xyz/mtfos/btdemo/MainActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/xyz/mtfos/btdemo/MainActivity.kt b/app/src/main/java/xyz/mtfos/btdemo/MainActivity.kt index 1ae0539..ef3b71b 100644 --- a/app/src/main/java/xyz/mtfos/btdemo/MainActivity.kt +++ b/app/src/main/java/xyz/mtfos/btdemo/MainActivity.kt @@ -34,7 +34,7 @@ class MainActivity : Activity() { connectBtn.isEnabled = true disconnectBtn.isEnabled = false - ble = PrinterBle(this@MainActivity, "43:43:A1:12:1F:AC", "dd535b71-8f05-4e30-beb0-6fa7ea3dfc3e", "00000002-8f05-4e30-beb0-6fa7ea3dfc3e") + ble = PrinterBle(this@MainActivity, "43:43:A1:12:1F:AC", "dd535b71-8f05-4e30-beb0-6fa7ea3dfc3e", "00000001-8f05-4e30-beb0-6fa7ea3dfc3e") ble?.setOnStateChangeListener { System.out.println("Now State is >>>> " + it)