tiempo de puerta abierta y cierre automatico

parent bcd8db1c
Showing with 1 additions and 1 deletions
......@@ -148,7 +148,7 @@ io.sockets.on('connection', function (socket) { // WebSocket Connection
setTimeout(function(){
cerrarPuerta(socket);
estadoPuerta = 1;
estadoPuerta = 0;
socket.broadcast.emit("actualizarEstado", Number(estadoPuerta));
socket.emit("actualizarEstado", Number(estadoPuerta));
}, 15000);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment