corretti bud invio evento connessione
parent
5ed63205ec
commit
8db32aabcc
|
|
@ -41,12 +41,16 @@ def send_response(queue_out, ip, command, data):
|
||||||
queue_out.put(msg)
|
queue_out.put(msg)
|
||||||
|
|
||||||
def send_event(queue_out, ip, connected, error, warning):
|
def send_event(queue_out, ip, connected, error, warning):
|
||||||
msg = {
|
resp = {
|
||||||
'ip': ip,
|
'ip': ip,
|
||||||
'connected': connected,
|
'connected': connected,
|
||||||
'error' : error,
|
'error' : error,
|
||||||
'warning': warning
|
'warning': warning
|
||||||
}
|
}
|
||||||
|
msg = {
|
||||||
|
'url' : URL_EVENT,
|
||||||
|
'msg': resp
|
||||||
|
}
|
||||||
print(f"Mando Evento: {msg}")
|
print(f"Mando Evento: {msg}")
|
||||||
queue_out.put(msg)
|
queue_out.put(msg)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue