PxPlus User Forum

Main Board => Discussions => Programming => Topic started by: Danilo David on May 11, 2022, 11:04:23 PM

Title: Error 2 on OPEN “[TCP]
Post by: Danilo David on May 11, 2022, 11:04:23 PM
Error 2 on OPEN “[TCP]….

We try to open a printer (GODEX G530) on the network: OPEN “[TCP]10.1.0.58;9100;NODELAY; KEEPALIVE”

The OPEN returns after several seconds an Error  #2 , then msg(-1) returns nothing.

What could be a possible reason ?

Thank you


Title: Re: Error 2 on OPEN “[TCP]
Post by: Stéphane Devouard on May 12, 2022, 06:26:42 AM
David

An error 2 on a TCP channel generally means that the remote peer (the printer) closed the connection

Regards