Network manager implemented and relatively stable

This commit is contained in:
Sebastien L
2021-12-10 13:07:27 -05:00
parent 81756a7649
commit 63fbc2f645
66 changed files with 4528 additions and 2679 deletions

View File

@@ -1098,7 +1098,7 @@ function rssiToIcon(rssi) {
}
function refreshAP() {
$.getJSON('/scan.json', async function() {
$.getJSON('/scan.json', async function() {
await sleep(2000);
$.getJSON('/ap.json', function(data) {
if (data.length > 0) {
@@ -1335,6 +1335,7 @@ function handleRecoveryMode(data) {
$('#boot-form').attr('action', '/recovery.json');
}
}
function hasConnectionChanged(data){
// gw: "192.168.10.1"
// ip: "192.168.10.225"
@@ -1366,10 +1367,10 @@ function handleWifiDialog(data){
$('.connecting-status').show();
}
if(SystemConfig.ap_ssid){
$('#apName').text(SystemConfig.ap_ssid);
$('#apName').text(SystemConfig.ap_ssid.value);
}
if(SystemConfig.ap_pwd){
$('#apPass').text(SystemConfig.ap_pwd);
$('#apPass').text(SystemConfig.ap_pwd.value);
}
if(!data)
{