Sensor Test

This commit is contained in:
Shannon Sterz 2016-01-28 18:57:15 +01:00
parent 6c017889e9
commit 004f928085

View file

@ -19,7 +19,9 @@ 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('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('Uo000000'), 'ascii');
arduino.write(new Buffer('Up000000'), 'ascii');
res.send('switch light');
});