HTTP Request, delay and retry
Posted: 24 Nov 2015 17:03
I am trying to make it, so when my phone disconnect from my wifi, it use HTTP Request to tell my homeautomation system I am no longer home. It does trigger correct, but it happens so fast it havent switched to mobile data, and same happens when I get home, where it has just connected to wifi, and still not have the connection fully established. With both timeout set to 5 or 10 seconds, it does not manage to get a connection, and stops with the error "unable to resolve host"
I then also tried to make a loop so it will retry 5 times, but instead it just stops the first time with "unable to resolve host", and then does not try again. Are there a way to make it ignore errors, and continue, so it can move further in the flow, wait the 1s I set, then retry again?
I then also tried to make a loop so it will retry 5 times, but instead it just stops the first time with "unable to resolve host", and then does not try again. Are there a way to make it ignore errors, and continue, so it can move further in the flow, wait the 1s I set, then retry again?