um substituto para em vez de uma comunicação RF utilizar wifi
Project description
comu
server
init
from comu.ser import se
s = se(net=True)
#se(net={'SSID':...,'PASSWORD':....})
recv
from time import sleep
while True:
data = s.recv()
if data:
print(data)
sleep(1)
send
from time import sleep
x = 0
while True:
s.send(x)
x+=1
sleep(1)
client
from comu.cli import ci
c = ci(net=True)
#ci(net={'ssid':...,'password':....}) or ci()
recv
from time import sleep
while True:
data = c.recv()
if data:
print(data)
sleep(1)
send
from time import sleep
x = 0
while True:
c.send(x)
x+=1
sleep(1)
close server
c.close() # or s.close()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for micropython_wifi_communication-0.0.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72f32a6396e0ee4338ac94e80bdeb1a556119dc511bf07a6a41693a07355898c |
|
MD5 | 7dd6e36053fe768f4f8654c753ff338a |
|
BLAKE2b-256 | 04e399fef0c9ba24c9638a39545c0738d2d2e8aadc8c2ec82510cf4fc9d37f16 |