08.09.2023, 12:37
Hi I'm trying this one in bellow
when I checked the console in the browser i found the error attached, what am i missing
Code:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script src="http://192.168.11.159/apps/js/jquery.js.gz"></script>
<script src="http://192.168.11.159/apps/js/localbus.js.gz"></script>
<script src="http://192.168.11.159/scada/vis/busdecode.js.gz"></script>
</head>
<body>
<script>
$(function() {
// listen to all groupwrite telegrams
localbus.listen('groupwrite', function(event) {
console.log(event);
});
// listen to a single object
localbus.listen('object', '1/1/1', function(value) {
console.log(value);
});
localbus.init('http://192.168.11.159', 'admin:admin');
});
</script>
</body>
</html>