Re-inject data
This commit is contained in:
parent
bbc45a3069
commit
435e1ace2c
1 changed files with 2 additions and 4 deletions
|
@ -77,10 +77,8 @@ def nodered_adeunisrf(provider, data):
|
||||||
if not res:
|
if not res:
|
||||||
return
|
return
|
||||||
|
|
||||||
with websocket.create_connection("ws://localhost:1880/{}".format(provider)) as ws:
|
for d in res:
|
||||||
for d in res:
|
lorautil.nodered_send(provider, d)
|
||||||
ws.send("%s" % d)
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
conns = lorautil.pg_conn_notify()
|
conns = lorautil.pg_conn_notify()
|
||||||
|
|
Loading…
Reference in a new issue