diff --git a/modem/mesh.py b/modem/mesh.py index af0ac5bd..87dee234 100644 --- a/modem/mesh.py +++ b/modem/mesh.py @@ -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 diff --git a/modem/sock.py b/modem/sock.py index a1da13c7..2c6ec3de 100644 --- a/modem/sock.py +++ b/modem/sock.py @@ -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):