This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'); | |
var app = express(); | |
var http = require('http').Server(app); | |
var io = require('socket.io')(http); | |
var serialport = require("serialport"); | |
var SerialPort = serialport.SerialPort; | |
// Constantes | |
var SERIALPORT = '/dev/tty.usbserial-A9007WoZ'; // PATH del puerto serial |