mesh route results

This commit is contained in:
Laura Klünder 2023-10-05 05:02:01 +02:00
parent c724833542
commit 0343030980
7 changed files with 170 additions and 47 deletions

View file

@ -4,3 +4,13 @@ def get_mesh_comm_group(address):
def indent_c(code):
return " "+code.replace("\n", "\n ")
def get_node_names():
from c3nav.mesh.models import MeshNode
return {
**{node.address: node.name for node in MeshNode.objects.all()},
'ff:ff:ff:ff:ff:ff': "broadcast",
'00:00:00:ff:ff:ff': "direct parent",
'00:00:00:00:00:00': "root",
}