Hi,
I'm trying to use the local OTA example.
When i'm sending the Tar file, i don't see any percentage value being refreshed as the download is supposed to progress.
When i look at the developpers option, it seems that the javascript used for this is the function :
function getOtaProgress() {
if (otaProgressInvoke == 1)
{
otaProgressInvoke = 0;
h = new XMLHttpRequest();
h.onreadystatechange = function(h) {
return function() {
if ((h.readyState == 4) && ((h.status == 200) || (h.status == 204))) {
clearTimeout(xmlHttpTimeout);
var data = h.response;
if(data == "") {
}
otaProgressInvoke = 1;
if(data == "fail"){
clearTimeout(xmlHttpTimeout);
clearTimeout(otaReportExec);
console.log("fail");
$(".wrong").show(500);
} else {
xmlHttpTimeout=setTimeout(ajaxTimeout, 30000);
$("#progressPrecent").text(data);
$("#progressBar").val(data);
if (data == '100'){
clearTimeout(xmlHttpTimeout);
clearTimeout(otaReportExec);
console.log("100%");
wait15andcheck();
// check if the file if uploaded successfuly
// $("#progressEnd").show(500);
}
}
}
}
} (h);
h.open("GET", "https://"+deviceIpAddr+":5432", true);
h.send();
}
}
This query seems to be blocked for security reason. Coult it be related to https being using a self signed certificate ?
Is there any other way to get the update state ?
Best regards,
Théodore