template, fixes
This commit is contained in:
parent
a8009f744d
commit
ac045c3e0e
7 changed files with 238 additions and 37 deletions
10
demo2.py
Normal file
10
demo2.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import network, sys, time
|
||||
|
||||
sock = network.Sock()
|
||||
address = ("0.0.0.0", 33077)
|
||||
|
||||
sock.listen(address)
|
||||
while True:
|
||||
for d, a in sock.get():
|
||||
print(a, d)
|
||||
time.sleep(0.1)
|
||||
Loading…
Add table
Add a link
Reference in a new issue