We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 160bb33 commit 13d83d3Copy full SHA for 13d83d3
main.py
@@ -97,6 +97,7 @@ def api_button(conn, request):
97
if "LED" in parameters:
98
led(0) if parameters["LED"] == "On" else led(1)
99
conn.write(b"Content-Type: text/html\r\n")
100
+ conn.write(b"\r\n")
101
conn.write(json.dumps({"LED": parameters["LED"]}))
102
conn.write("\r\n")
103
return CONNECTION_CLOSE
0 commit comments