Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/infuse_iot/tools/localhost.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from aiohttp.web_runner import GracefulExit

import infuse_iot.epacket.interface as interface
import infuse_iot.epacket.packet as packet
from infuse_iot.commands import InfuseCommand
from infuse_iot.common import InfuseType
from infuse_iot.definitions.tdf import structs
Expand Down Expand Up @@ -81,6 +82,11 @@ async def websocket_handler(self, request: BaseRequest):
"field": "application",
"headerHozAlign": "center",
},
{
"title": "Network",
"field": "network_id",
"headerHozAlign": "center",
},
{
"title": "Last Heard",
"field": "time",
Expand Down Expand Up @@ -203,6 +209,9 @@ def recv_thread(self) -> None:
self._data[source.infuse_id]["bt_addr"] = addr_str
self._data[source.infuse_id]["bt_rssi"] = source.rssi

if source.auth == packet.Auth.NETWORK:
self._data[source.infuse_id]["network_id"] = f"0x{source.key_identifier:06x}"

for tdf in self._decoder.decode(msg.epacket.payload):
t = tdf.data[-1]
if t.NAME not in self._columns:
Expand Down