Okay, I’m knee deep in a program that checks if windows or doors are open. When it finds one is, it sends an httpget request off. The problem is that there has to be a 10 second pause between httpget requests. So I put in this line after the httpget line:
So after finding an open door or window, the httpget it fired off, then it waits 12 seconds before returning to do the next check. This worked great for most of my initial testing. However, I just tested over a large number of doors and windows, 4 of which were open. When I did that, I got the following error:
12:53:52 PM: error java.util.concurrent.TimeoutException: Execution timed out after 40 units. Start time: Thu Jul 03 16:53:02 UTC 2014 @ line 72
It would seem that my pauses pushed this beyond this timeout limit of 40 units (seconds?). Is there a way to extend whatever this time out is? It’ll be rare that more than two or three sensors would be open in practice, but certainly it’s possible so I’d like to make sure my program doesn’t die… or worse, seem to work but neglect to report a window or door that’s open.