lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

It was thus said that the Great Ulrich Schmidt once stated:
> I can open the serial port via 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)