var express = require('express');
var app = require('express')();
var server = require('http').Server(app);
var io = require('socket.io')(server);
var serial= require('./serial-node');
<<<<<<< HEAD:app.js
app.use(express.static(__dirname + '/exemples/web'));
=======
app.use(express.static(__dirname + '/web'));
>>>>>>> origin/master:exemples/app.js
server.listen(80, function() {console.log("Server Online");});
io.on('connection', function (socket) 
{  
	serial.list();
	serial.use('com3');
	socket.on('led-status', function (data) 
	{  
		serial.open();
    	if(data===1) 
    	{ 
			serial.write("1");
    	}
		if(data===0) 
		{ 
			serial.write("0"); 
		}
		console.log(serial.read());
		serial.close();
  	});
});

var express = require('express');
var app = require('express')();
var server = require('http').Server(app);
var io = require('socket.io')(server);
var serial= require('./serial-node');
app.use(express.static(__dirname + '/exemples/web'));
app.use(express.static(__dirname + '/web'));
server.listen(80, function() {console.log("Server Online");});
io.on('connection', function (socket) 
{  
	serial.list();
	serial.use('com3');
	socket.on('led-status', function (data) 
	{  
		serial.open();
    	if(data===1) 
    	{ 
			serial.write("1");
    	}
		if(data===0) 
		{ 
			serial.write("0"); 
		}
		console.log(serial.read());
		serial.close();
  	});
});

Update app.js