anybody figured out a way to still get data back from datafield background processing even in case of a timeout?
i've been doing both a webrequest and getting the device temperature in the same background call. but if the webrequest times out, then i don't have a way to get the device temp either.
here's the common (and obviously not working just for show) code. problem is the receiveResponse method won't ever get called in a timeout. and you can't set a property in background, so that won't work either.
.
function onTemporalEvent() { Comm.makeWebRequest( url, null, { :method=>Comm.HTTP_REQUEST_METHOD_GET }, method(:receiveResponse) ); } function receiveResponse(responseCode, data) { if(data != null) { data["gt"] = getGarminTemp(); Background.exit(data); } }