clean up test route

This commit is contained in:
Shannon Sterz 2016-02-22 13:22:18 +01:00
parent 73a66e3cef
commit db6589b634

View file

@ -28,8 +28,6 @@ router.post('/register', function (req, res, next){
router.get('/irTest', function (req, res) { 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('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'); res.send('switch light');
}); });