ajout en cours d'une fonctiondeleteDevice
This commit is contained in:
@ -20,6 +20,13 @@ return '<script language="javascript">
|
||||
xhr.onload = function () {};
|
||||
xhr.send();
|
||||
}
|
||||
function setPropertyMethod(topic, fn, method, property)
|
||||
{
|
||||
let xhr = new XMLHttpRequest();
|
||||
xhr.open("GET", "http://192.168.1.253:' . $listenPort . '/set&fn="+fn+"&property="+property+"&topic="+topic+"&method="+method);
|
||||
xhr.onload = function () {};
|
||||
xhr.send();
|
||||
}
|
||||
function getPropertyValue(topic, fn, property)
|
||||
{
|
||||
let xhr = new XMLHttpRequest();
|
||||
@ -31,6 +38,13 @@ return '<script language="javascript">
|
||||
location.reload();
|
||||
}, 1000);
|
||||
}
|
||||
function deleteDevice($topic, fn)
|
||||
{
|
||||
let xhr = new XMLHttpRequest();
|
||||
xhr.open("GET", "http://192.168.1.253:' . $listenPort . '/deleteDevice&fn="+fn+"&topic="+topic);
|
||||
xhr.onload = function () {};
|
||||
xhr.send();
|
||||
}
|
||||
// -->
|
||||
</script>';
|
||||
}
|
||||
|
Reference in New Issue
Block a user