Boa Tarde Srs. Meu primeiro post no fórum que já acompanho a algum tempo.
Iniciei hoje o processo de integração do meu software web com o monitor. Dei uma lida no Help e comecei os jobs.
Inicialmente, queria testar a impressão.
Fiz os seguintes procedimentos, conforme ordem abaixo, mas não imprime nada, embora a resposta aparentemente seja true.
ESCPOS.porta
ESCPOS.setporta('ESDPRT001') //Não vi muita finalidade, pois já foi setada no monitor.
ESCPOS.ativar //Também fiz a ativação no monitor.
ESCPOS.ativo
ESCPOS.imprimir
Alguém consegue me dar um help? Obrigado.
ESCPOS.porta
object(ClientSocket)[1]
private 'hnd' => resource(3, Socket)
private 'host' =>
array (size=1)
0 => string '127.0.0.1' (length=9)
private 'ip' =>
array (size=1)
0 => string '127.0.0.1' (length=9)
private 'port' => int 3434
private 'type' => null
private 'family' => int 2
private 'protocol' => int 6
private 'bConnected' => boolean true
private 'sBuffer' => string 'ACBrMonitor/ACBrNFeMonitor PLUS Ver. 0.3.08.1
Conectado em: 16/11/16 14:42:39
M谩quina: 127.0.0.1
Esperando por comandos.OK: ESDPRT001' (length=139)
private 'iReadTimeOut' => int 2
private 'iWriteTimeOut' => int 2
public 'bShowErros' => boolean false
public 'bExceptions' => boolean true
public 'typ' => int 1
ESCPOS.setporta('ESDPRT001')
object(ClientSocket)[1]
private 'hnd' => resource(3, Socket)
private 'host' =>
array (size=1)
0 => string '127.0.0.1' (length=9)
private 'ip' =>
array (size=1)
0 => string '127.0.0.1' (length=9)
private 'port' => int 3434
private 'type' => null
private 'family' => int 2
private 'protocol' => int 6
private 'bConnected' => boolean true
private 'sBuffer' => string 'OK: ' (length=5)
private 'iReadTimeOut' => int 2
private 'iWriteTimeOut' => int 2
public 'bShowErros' => boolean false
public 'bExceptions' => boolean true
public 'typ' => int 1
ESCPOS.ativar
object(ClientSocket)[1]
private 'hnd' => resource(3, Socket)
private 'host' =>
array (size=1)
0 => string '127.0.0.1' (length=9)
private 'ip' =>
array (size=1)
0 => string '127.0.0.1' (length=9)
private 'port' => int 3434
private 'type' => null
private 'family' => int 2
private 'protocol' => int 6
private 'bConnected' => boolean true
private 'sBuffer' => string 'OK: ' (length=5)
private 'iReadTimeOut' => int 2
private 'iWriteTimeOut' => int 2
public 'bShowErros' => boolean false
public 'bExceptions' => boolean true
public 'typ' => int 1
ESCPOS.ativo
object(ClientSocket)[1]
private 'hnd' => resource(3, Socket)
private 'host' =>
array (size=1)
0 => string '127.0.0.1' (length=9)
private 'ip' =>
array (size=1)
0 => string '127.0.0.1' (length=9)
private 'port' => int 3434
private 'type' => null
private 'family' => int 2
private 'protocol' => int 6
private 'bConnected' => boolean true
private 'sBuffer' => string 'OK: True' (length=9)
private 'iReadTimeOut' => int 2
private 'iWriteTimeOut' => int 2
public 'bShowErros' => boolean false
public 'bExceptions' => boolean true
public 'typ' => int 1
ESCPOS.imprimir('FONTE NORMAL: 48 Colunas....+....1....+....2....+....3....+....4....+...EXPANDIDO: 24 Colunas....+....1....+....2....CONDENSADO: 64 Colunas....+....1....+....2....+....3....+....4....+....5....+....6....')
string 'OK: ' (length=5)