[Gambas-user] Output buffer of Serial Port
Mike Crean
mike.crean at y7mail.com
Fri Apr 26 07:54:58 CEST 2019
Just read the data in it should empty it.
EG,
Public Rxs As String
Public Sub Sport_Read() Dim Rx As String Sleep 0.05 Read #Sport, Rx, Lof(Sport) Rxs = Rxs & Rx
If Rx = Chr$(13) Then '*** Do some thing with the data **** TextArea1.Text = TextArea1.Text & Rxs Rxs = "" End IfEnd
Mike
On Thursday, 25 April 2019, 9:10:05 pm AWST, Benoît Minisini <g4mba5 at gmail.com> wrote:
Le 25/04/2019 à 14:55, Ivan Kern a écrit :
> Good afternoon, everyone.
> is it possible to empty the output buffer of Serial Port?
>
> Greetings, Ivan
>
How do you do that in C ?
--
Benoît Minisini
----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20190426/c6bc699b/attachment.html>
More information about the User
mailing list