corretti bud invio evento connessione

This commit is contained in:
2020-03-20 17:29:52 +01:00
parent 5ed63205ec
commit 8db32aabcc
+5 -1
View File
@@ -41,12 +41,16 @@ def send_response(queue_out, ip, command, data):
queue_out.put(msg)
def send_event(queue_out, ip, connected, error, warning):
msg = {
resp = {
'ip': ip,
'connected': connected,
'error' : error,
'warning': warning
}
msg = {
'url' : URL_EVENT,
'msg': resp
}
print(f"Mando Evento: {msg}")
queue_out.put(msg)