feat(tcp): include type in wifi hello line

Made-with: Cursor
This commit is contained in:
pi
2026-04-06 00:21:43 +12:00
parent 7e3aca491c
commit cef9e00819

View File

@@ -126,6 +126,7 @@ hello = {
"v": "1", "v": "1",
"device_name": settings.get("name", ""), "device_name": settings.get("name", ""),
"mac": ubinascii.hexlify(mac).decode().lower(), "mac": ubinascii.hexlify(mac).decode().lower(),
"type": "led",
} }
hello_bytes = json.dumps(hello).encode("utf-8") hello_bytes = json.dumps(hello).encode("utf-8")
hello_line = hello_bytes + b"\n" hello_line = hello_bytes + b"\n"