-->
Page 1 of 2

iPhone5 - 'Network connection' lost for wifi.tpl pages

PostPosted: Fri May 27, 2016 4:08 am
by Cicero
I'm finding that when trying to access the wifi.tpl pages to scan for networks, it often fails to load the page and returns 'Network Connection Lost' (safari) or 'There is no internet connection - your device is offline' (chrome).

I have to reload the page pretty often and then it may go though, and even then it might half load and hang at 'scanning'.

Anyone else seen this? It seems solid connecting using a PC, so I'm thinking it may just be a shitty iphone5 thing?

Re: iPhone5 - 'Network connection' lost for wifi.tpl pages

PostPosted: Wed Jun 01, 2016 4:44 am
by Cicero
Anyone?

Re: iPhone5 - 'Network connection' lost for wifi.tpl pages

PostPosted: Wed Jun 01, 2016 9:43 am
by Cicero
I am also finding that the AJAX requests stop after a seemingly randomly period of time with iOS devices.

I'm doing a constant poll, using this code:
Code: Select all      function getStatus() {
        xhr.open("GET", "cgiMachineTextStatus.cgi");
        //console.log("Getting text status");
        xhr.onreadystatechange=function() {
          if (xhr.readyState==4 && xhr.status>=200 && xhr.status<300) {
            var data=JSON.parse(xhr.responseText);
            document.getElementById("output").value = data.result;                    
            window.setTimeout(getStatus, 1000);           
          }
        }
        xhr.send();
      }


This just stops sending after a random period of time., anything from 2 to 12seconds.

Any ideas or help would be appreciated. Its driving me crazy!

Re: iPhone5 - 'Network connection' lost for wifi.tpl pages

PostPosted: Fri Jun 03, 2016 9:01 am
by Sprite_tm
Sorry, I have no Apple device to test this with... Is this a direct connection or through an access point? Would you have any chance of doing a packet capture? Does this not happen with non-iPhone5 devices?