Issue #060 [WontFix/closed] - adding a delay before sending commands to serial port

Posted by avnerrichard

Hello,

I would like to be able to do the following:

The client side HTML would send 3 or 4 separate command strings to the webiopi very quickly one after the other, or even all at once.

but I need the local pi script to write the strings to the serial port separately, adding a 5 seconds delay between strings.

I tested the software, and I am seeing that it currently buffers the commands - if I send 3 long commands quickly, it will store them and send them one after the other without interrupting the previous string in the middle, which means it should be quite simple to add a delay between each writing to the serial port,

where do i do this ?

Thank you !


Comment 1

Posted by trouch

Use macros !