mesh routing now fully database-bound

This commit is contained in:
Laura Klünder 2023-11-07 16:35:46 +01:00
parent ee539f678a
commit 66810b20b0
6 changed files with 94 additions and 93 deletions

View file

@ -1,8 +1,13 @@
from operator import attrgetter
def get_mesh_comm_group(address):
return 'mesh_comm_%s' % address.replace(':', '-')
def get_mesh_uplink_group(address):
return 'mesh_uplink_%s' % address.replace(':', '-')
MESH_ALL_UPLINKS_GROUP = "mesh_uplink_all"
UPLINK_PING = 5
UPLINK_TIMEOUT = UPLINK_PING+5
def indent_c(code):