9 lines
266 B
JavaScript
9 lines
266 B
JavaScript
|
<script>
|
||
|
function sendRange(value, property)
|
||
|
{
|
||
|
let xhr = new XMLHttpRequest();
|
||
|
xhr.open("GET", "http://localhost:' . $listenPort . '/set&fn=' . $device->friendlyName . '&property="+property+"&topic=' . $device->topic . '&value=" + value);
|
||
|
xhr.send();
|
||
|
}
|
||
|
<script>
|