Skip to content

Instantly share code, notes, and snippets.

@caligo-mentis
Created March 6, 2016 23:20
Show Gist options
  • Save caligo-mentis/4c71878b441fb42decb9 to your computer and use it in GitHub Desktop.
Save caligo-mentis/4c71878b441fb42decb9 to your computer and use it in GitHub Desktop.
var SmartBus = require('smart-bus');
var bus = new SmartBus({
subnet: 1,
id: 50, // Device id for connector
gateway: '192.168.10.152', // HDL SmartBus gateway IP
port: 6000 // Listening port, default: 6000
});
bus.socket.on('listening', function() {
bus.send('1.4', 0x0031, { channel: 1, level: 100 }, function(err) {
console.log ('ds');
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment