Hi All,
I have a request that hopefully someone will be able to help out with.. Involving Timers.
I need to perform the following:
Start 10 second timer loop
# Perform logic (i.e. send request to webserver and wait for response)
If response comes back within the 10 second timer (i.e. within 10 seconds) then
# All ok
Stop timer (and start timer loop again)
Else
# ERROR (and start timer loop again)
End If
Timer end loop.
So I suppose I need logic to:
a)start a 10 second timer.
b)If response has come back, check If 10 second timer has finished. If so, end timer and start timer loop again.
c)If timer is up and no response has been received (i.e. no flag has been set), then error and restart timer 10 second counter again.
cheers all
JD.
I have a request that hopefully someone will be able to help out with.. Involving Timers.
I need to perform the following:
Start 10 second timer loop
# Perform logic (i.e. send request to webserver and wait for response)
If response comes back within the 10 second timer (i.e. within 10 seconds) then
# All ok
Stop timer (and start timer loop again)
Else
# ERROR (and start timer loop again)
End If
Timer end loop.
So I suppose I need logic to:
a)start a 10 second timer.
b)If response has come back, check If 10 second timer has finished. If so, end timer and start timer loop again.
c)If timer is up and no response has been received (i.e. no flag has been set), then error and restart timer 10 second counter again.
cheers all
JD.