Migrate MCP and utilities to CircuitPython, including color GIF and volume fixes
This commit is contained in:
@@ -87,6 +87,7 @@ def connect_socket(esp32_ip, port, protocol):
|
||||
if protocol == "tcp":
|
||||
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
sock.connect((esp32_ip, port))
|
||||
sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
|
||||
print(f"Connected to stream server at {esp32_ip}:{port}")
|
||||
return sock
|
||||
else: # udp
|
||||
|
||||
Reference in New Issue
Block a user