CAMBIOS EN IMPRESION

This commit is contained in:
cvaldes1201
2024-01-17 15:57:24 -06:00
parent 7031c3e19f
commit 58a19bbf87
4 changed files with 95 additions and 13 deletions

View File

@@ -135,6 +135,40 @@ Public Sub Connect As Boolean
End Try
End Sub
Public Sub Connect2 As Boolean
'leos
' Serial1.Connect("88:6B:0F:3E:53:9E")
' Return True
' Try
' If Starter.MAC_IMPRESORA = "0" Then
Dim PairedDevices As Map
PairedDevices = Serial1.GetPairedDevices
Dim l As List
l.Initialize
For i = 0 To PairedDevices.Size - 1
l.Add(PairedDevices.GetKeyAt(i))
Next
Dim Res As Int
Res = InputList(l, "Choose a printer", -1) 'show list with paired devices 'ignore
If Res <> DialogResponse.CANCEL Then
Serial1.Connect(PairedDevices.Get(l.Get(Res))) 'convert the name to mac address
'Msgbox(PairedDevices.Get(l.Get(Res)),"mac")
Starter.mac_impresora = PairedDevices.Get(l.Get(Res))
Return True
End If
Return False
' Else
' Serial1.Connect(Starter.mac_impresora)
' ' Starter.mac_impresora = colonia.MAC_IMPRESORA
' Return True
' End If
' Catch
' Log(LastException)
' End Try
End Sub
' Disconnect the printer
Public Sub DisConnect
Serial1.Disconnect