fix send test

This commit is contained in:
Shannon Sterz 2016-01-28 19:00:17 +01:00
parent 004f928085
commit 151f234ff2

View file

@ -19,7 +19,7 @@ router.get('/toggleLight', function (req, res) {
});
router.get('/irTest', function (req, res) {
//arduino.write(new Buffer('X' + String.fromCharCode(4) + String.fromCharCode(12) + String.fromCharCode(0)+String.fromCharCode(0)+String.fromCharCode(2689 / 256) + String.fromCharCode(2689 % 256),'ascii'));
//arduino.write(new Buffer('X0' + String.fromCharCode(4) + String.fromCharCode(12) + String.fromCharCode(0)+String.fromCharCode(0)+String.fromCharCode(2689 / 256) + String.fromCharCode(2689 % 256),'ascii'));
arduino.write(new Buffer('Uo000000'), 'ascii');
arduino.write(new Buffer('Up000000'), 'ascii');
res.send('switch light');