Sensor Test
This commit is contained in:
parent
6c017889e9
commit
004f928085
1 changed files with 3 additions and 1 deletions
|
@ -19,7 +19,9 @@ router.get('/toggleLight', function (req, res) {
|
||||||
});
|
});
|
||||||
|
|
||||||
router.get('/irTest', 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');
|
res.send('switch light');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Reference in a new issue