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
File details
Details for the file micropython_wifi_communication-0.0.9.tar.gz.
File metadata
- Download URL: micropython_wifi_communication-0.0.9.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0544d7e16833c2ad1ef499ecfa764c4edef302f4d511d329a15256d365df8b5
|
|
| MD5 |
c03ad8fc90964a359714e509eec5faca
|
|
| BLAKE2b-256 |
03d15dcacfcdea601166f17f309851f1b6ee4367a4d8731eb81ba9f6e95ac15d
|