[Gambas-user] Read a Serial data ttySx

Benoit Minisini gambas at ...2...
Wed May 14 19:02:36 CEST 2003


Le Lundi 12 Mai 2003 17:41, Dimitri Bellini a écrit :
> Hi List
> 	i have to read a serial data from a ttySx and i use stty command to set
> the 9600bps 8N1 no hardware control on Serial Port but nothing to do i
> write this very simple Project but nothing... There is a End Of Line Type?
> Thanks in advace.
>
> ---------------------------------------------------------------------------
>- STATIC PUBLIC SUB Main()
>   hForm AS Fmain
>   hForm = NEW Fmain
>   hForm.show
> END
>
> PUBLIC SUB Button1_Click()
>   myLine AS String
>   myFile AS File
>
>   OPEN "/dev/ttyS0" FOR READ AS myFile

Try to add the DIRECT keyword, to prevent i/o buffering.

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the User mailing list