Android Question How close the Serial port after sure of all data it´s on the printer?

Discussion in 'Android Questions' started by infow, Feb 27, 2019.

  1. infow

    infow Member Licensed User

    Hi,

    As oriented in many topics I´m using:

    Astream.SendAllAndClose and AStream_Terminated event

    to close the serial connection, but it´s cutting the print in half sometimes, tryed to apeal to time, but never goes ok, too much time the user get stucked between the prints, too short, cut the print or give all sorts of problems...

    There is a way to get the real time when the printer received all data?

    Thanks
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Unless you receive some feedback from the printer your best option is to call Sleep with a duration that is long enough.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice