mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
Merge branch 'main' into ls-github
This commit is contained in:
commit
c98999190e
2 changed files with 7 additions and 3 deletions
|
@ -174,7 +174,7 @@ class MeshRouter():
|
|||
except Exception as e:
|
||||
self.log.warning("[MESH] error adding data to routing table", e=e, router=new_router)
|
||||
|
||||
def broadcast_routing_table(self, interval=10):
|
||||
def broadcast_routing_table(self, interval=600):
|
||||
|
||||
while True:
|
||||
# always enable receiving for datac4 if broadcasting
|
||||
|
|
|
@ -1407,8 +1407,12 @@ def send_modem_state():
|
|||
}
|
||||
)
|
||||
|
||||
#print(output)
|
||||
return json.dumps(output)
|
||||
try:
|
||||
json_out = json.dumps(output)
|
||||
except Exception as e:
|
||||
log.warning("[SCK] error while json conversion for modem state", e=e)
|
||||
|
||||
return json_out
|
||||
|
||||
|
||||
def command_response(command, status):
|
||||
|
|
Loading…
Reference in a new issue