30.06.2021, 09:31
You have to wait for the WebSocket connection to be established. Use this:
Code:
if (typeof localbus === 'object') {
$(localbus).on('connect', function() {
grp.write('32/1/152', true);
});
}