[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: serial port trouble on Win10
- From: Sean Conner <sean@...>
- Date: Sat, 10 Oct 2020 02:51:39 -0400
It was thus said that the Great Ulrich Schmidt once stated:
> I can open the serial port via io.open() but this approach works in
> buffered mode and my short messages get stuck in the transmit buffer.
Two possible solutions:
1. use file:flush() after writing data to ensure the buffer is written.
2. use file:setvbuf('no') immediately after opening the serial port to avoid
all buffering of data.
-spc (And that's all the ideas I have)