-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFunciones.js
More file actions
24 lines (17 loc) · 784 Bytes
/
Funciones.js
File metadata and controls
24 lines (17 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
*******************************************************************************
******************* PROCESOS *************************************
*******************************************************************************
*/
function funcion_action(x){
var input_valor = "#GO_Led" + x;
var funcion_string = $("#selectLed1").val();
var time = $("#Time_Led1").val();
var topic_publish = "/casa/function/" + funcion_string + "/" + x;
client.publish(topic_publish, time, (error) => {
console.log(error || 'Mensaje enviado!!!-->', topic_publish,'-->',time)
})
console.log(topic_publish + "->" + time)
alert("Activamos funcion: " + funcion_string + " Led: " + x);
}
//*******************************************************************************