mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-12 21:18:13 +08:00
更新web socket状态
This commit is contained in:
@@ -305,6 +305,8 @@ var ap_name = "";
|
||||
var ap_pswd = "";
|
||||
var station_name = "";
|
||||
var station_pswd = "";
|
||||
|
||||
function GetTc1Status() {
|
||||
HttpGet("/status", function (re) {
|
||||
var status = JSON.parse(re);
|
||||
var status_arr = status.sockets.split(",");
|
||||
@@ -326,7 +328,10 @@ HttpGet("/status", function (re) {
|
||||
info_gateway.innerHTML = status.gateway;
|
||||
uptime.innerHTML = status.start_time;
|
||||
}
|
||||
window.setTimeout(GetTc1Status, 3000);
|
||||
});
|
||||
}
|
||||
GetTc1Status();
|
||||
|
||||
var power_idx = 0;
|
||||
var position = 0;
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user