Hi,
I need to force my script to wait in between sending IP/Serial commands.
I was using:
Threading.Thread.Sleep(delaymS)
But seemed to get very unpredictable results.
I then switched to hs.WaitSecs(delaySecs) which seems to work well - but only accepts an integer and 1 sec is just too big a delay (I have about 14 ip/serial commands to send).
Any suggestions on best practice?
Thanks.
I need to force my script to wait in between sending IP/Serial commands.
I was using:
Threading.Thread.Sleep(delaymS)
But seemed to get very unpredictable results.
I then switched to hs.WaitSecs(delaySecs) which seems to work well - but only accepts an integer and 1 sec is just too big a delay (I have about 14 ip/serial commands to send).
Any suggestions on best practice?
Thanks.
Comment