New Samples Update. Modbus Coil Read Write Fix.
This commit is contained in:
20
Samples/TaskManager/Scripts/refresh.js
Normal file
20
Samples/TaskManager/Scripts/refresh.js
Normal file
@@ -0,0 +1,20 @@
|
||||
$(document).ready(function () {
|
||||
setInterval("startRequest()", 1000);
|
||||
});
|
||||
|
||||
function startRequest() {
|
||||
var url = "/Home/Get";
|
||||
$.ajax({
|
||||
type: "get",
|
||||
async: true,
|
||||
url: url,
|
||||
timeout: 1000,
|
||||
success: function (datas) {
|
||||
$.each(datas, function(index) {
|
||||
$('#' + datas[index].Id).html(datas[index].Value);
|
||||
});
|
||||
},
|
||||
error: function () {
|
||||
}
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user