Vibecoded fixes & readme
This commit is contained in:
@@ -42,7 +42,7 @@ class WizDriver:
|
||||
}
|
||||
|
||||
async def send_udp(self, ip: str, payload: dict):
|
||||
loop = asyncio.get_event_loop()
|
||||
loop = asyncio.get_running_loop()
|
||||
with socket.socket(socket.AF_INET, socket.SOCK_DGRAM) as sock:
|
||||
sock.settimeout(2.0)
|
||||
data = json.dumps(payload).encode()
|
||||
|
||||
Reference in New Issue
Block a user