Skip to content

Commit aca519f

Browse files
authored
clarify connect kwarg
1 parent e908f3a commit aca519f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/esp32spi_udp_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
s.settimeout(TIMEOUT)
4343

4444
print("Sending")
45-
s.connect(socketaddr, esp.UDP_MODE)
45+
s.connect(socketaddr, conntype=esp.UDP_MODE)
4646
packet = bytearray(48)
4747
packet[0] = 0b00100011 # Not leap second, NTP version 4, Client mode
4848
s.send(packet, conntype=esp.UDP_MODE)

0 commit comments

Comments
 (0)