* * *

Author Topic: TLazSerial : serial port component for Lazarus (windows and linux).  (Read 98233 times)

allan.brito

  • Newbie
  • Posts: 2
Re: TLazSerial : serial port component for Lazarus (windows and linux).
« Reply #225 on: March 08, 2017, 04:02:07 pm »
Hello Everybody,

I'm using LazSerial and it's very useful, but I'm getting some trouble because I want to receive 15 bytes from a barCode Scanner and I can't get it. In Java I get it because i put that I'm receiving 15 bytes. Can anyone help me in this case? Thanks in Advance.

Thaddy

  • Hero Member
  • *****
  • Posts: 3053
Re: TLazSerial : serial port component for Lazarus (windows and linux).
« Reply #226 on: March 08, 2017, 04:49:27 pm »
Well. There still isn't an overloaded function ReadData(Size) for that. It is still string instead of buffer of byte, with length... (That's why I don't use it!)
Since "//    function ReadBuffer(var buf; size: integer): integer;"  is not available....
Why? Dunno, I simply ignore LazSerial and use synaser direct. Lazserial is a bit of a hoax anyway.  It hardly adds anything useful. (I am opiniated  ;D :D,don't take that too serious )
« Last Edit: March 08, 2017, 04:54:15 pm by Thaddy »

allan.brito

  • Newbie
  • Posts: 2
Re: TLazSerial : serial port component for Lazarus (windows and linux).
« Reply #227 on: March 08, 2017, 05:35:49 pm »
No problem, I'm new in this language and LazSerial had helped me so much. And Thanks everybody, I get it... I had to disable the RcvLineCRLF and worked well. Thanks.

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus