##// END OF EJS Templates
Se agrego el threshold...
Se agrego el threshold Se modifico el programa principal para que la alarma se active según el porcentaje definido por el operador

File last commit:

r17:bd1aca73f3ce
r20:96b1842fbedf schottkyExp
Show More
publish_script.py
10 lines | 303 B | text/x-python | PythonLexer
import paho.mqtt.client as mqtt
import paho.mqtt.publish as publish
MQTT_SERVER="10.10.10.102"
MQTT_PORT = 1883
publishTopic="tesis/test"
broker_address = "localhost"
mensaje = "[10,20,30,40,50,60,70,80]"
# Publicar el mensaje en el tópico
publish.single(publishTopic, mensaje, hostname=MQTT_SERVER)