read function in python serial
Fredrik Lundh
fredrik at pythonware.com
Thu Aug 11 08:26:12 EDT 2005
"sinan ." <orome.the.valar at gmail.com> wrote:
> hi i`m developing a program that reads the serial device. i like the
> readline() function, but readline() depends on \n character, i want a
> similar function that waits for a specific character or string that i
> gave like [ETX] (hex03) how can i do this ?
call read(1) repeatedly until you see chr(3).
</F>
More information about the Python-list
mailing list