Dear friends, I'm trying use this library, but i can't get the printer to print.
Heare is a little part of my implamentation:
Private rp As RuntimePermissions
rp.CheckAndRequest("android.permission.BLUETOOTH_CONNECT")
' Inicializar admin y serial
admin.Initialize("admin")
serial.Initialize("serial")
' Conectar a la impresora
serial.Connect("03:02:9C:C1:2C:7F")
Log("Conexión establecida")
AStreamI.InitializePrefix(serial.InputStream, True, serial.OutputStream, "AStreamI")
Wait For Serial_Connected (Success As Boolean)
If Success Then
Log("Conexión correcta con impresora")
Sleep(5000) ' Dale un pequeño respiro a la impresora
escpo.doPrintBluetoot("Mi Primera Impresión")
escpo.doPrintBluetoot("Y la segunda")
Log("Imprimo!!")
Else
Log("Fallo al conectar con la impresora")
End If
About the code, I get the Log "Conexión correcta con impresora" in to, If Success Then because Success is True.
Note that i can't use B4x Pages in my project, because the app is big and developed with out it. And is so time expensive implement right now.
I think that is mandatary use B4x Pages, but i don't know.
Please, help me.
Thank you very much in advance.