diff --git a/nodejs/routes/index.js b/nodejs/routes/index.js index 93afd2e..15ca046 100644 --- a/nodejs/routes/index.js +++ b/nodejs/routes/index.js @@ -28,8 +28,6 @@ router.post('/register', function (req, res, next){ router.get('/irTest', function (req, res) { 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'); });