1
0
moha/webserver/sendrange.js

9 lines
266 B
JavaScript
Raw Normal View History

2022-03-04 22:30:16 +01:00
<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>