feat(tcp): include type in wifi hello line
Made-with: Cursor
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user