[Gambas-user] Output buffer of Serial Port
Ivan Kern
ivan-kern at freenet.de
Fri Apr 26 08:28:18 CEST 2019
Thanks to everyone, the matter is settled.
The problem was the wrong serial port settings.
Greetings, Ivan
Am 26.04.2019 um 07:54 schrieb Mike Crean via User:
> 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 If
> End
>
>
> 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
> <https://www.hostsharing.net%20>]----
>
>
> ----[ 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/99c4959a/attachment.html>
More information about the User
mailing list