Created
March 6, 2016 23:20
-
-
Save caligo-mentis/4c71878b441fb42decb9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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