fix send test
This commit is contained in:
parent
004f928085
commit
151f234ff2
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||
|
|
Reference in a new issue