Parsing data from pyserial
Fredrik Lundh
fredrik at pythonware.com
Sun Dec 3 13:47:15 EST 2006
Si Ballenger wrote:
> I would think a time delay would be needed between the below two
> lines in the code if he expects to get a useable data string back
> from the gizmo for the command sent to it.
>
> ser.write("TC 016 240 100 240 016 240\r\n")
> reading = ser.read(40)
why's that? if the gizmo is busy "doing its thing", read() will wait
for up to one second before giving up.
</F>
More information about the Python-list
mailing list