# 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()
Raw data
{
"_id": null,
"home_page": "",
"name": "micropython-wifi-communication",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "socket communication via wifi",
"author": "issei momonge",
"author_email": "mggyggf@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/03/d1/5dcacfcdea601166f17f309851f1b6ee4367a4d8731eb81ba9f6e95ac15d/micropython_wifi_communication-0.0.9.tar.gz",
"platform": null,
"description": "# comu\r\n\r\nserver\r\n\r\ninit\r\n\r\n from comu.ser import se\r\n \r\n s = se(net=True)\r\n #se(net={'SSID':...,'PASSWORD':....})\r\n\r\nrecv\r\n \r\n from time import sleep\r\n \r\n while True:\r\n data = s.recv()\r\n if data:\r\n print(data)\r\n sleep(1)\r\n\r\nsend\r\n\r\n from time import sleep\r\n \r\n x = 0\r\n\r\n while True:\r\n s.send(x)\r\n x+=1\r\n sleep(1)\r\n\r\n\r\nclient\r\n\r\n from comu.cli import ci\r\n \r\n c = ci(net=True)\r\n #ci(net={'ssid':...,'password':....}) or ci()\r\n\r\nrecv\r\n \r\n from time import sleep\r\n \r\n while True:\r\n data = c.recv()\r\n if data:\r\n print(data)\r\n sleep(1)\r\n\r\nsend\r\n\r\n from time import sleep\r\n \r\n x = 0\r\n\r\n while True:\r\n c.send(x)\r\n x+=1\r\n sleep(1)\r\n\r\nclose server\r\n \r\n c.close() # or s.close()\r\n\r\n",
"bugtrack_url": null,
"license": "MIT License",
"summary": "um substituto para em vez de uma comunica\u00e7\u00e3o RF utilizar wifi",
"version": "0.0.9",
"project_urls": null,
"split_keywords": [
"socket",
"communication",
"via",
"wifi"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "03d15dcacfcdea601166f17f309851f1b6ee4367a4d8731eb81ba9f6e95ac15d",
"md5": "c03ad8fc90964a359714e509eec5faca",
"sha256": "a0544d7e16833c2ad1ef499ecfa764c4edef302f4d511d329a15256d365df8b5"
},
"downloads": -1,
"filename": "micropython_wifi_communication-0.0.9.tar.gz",
"has_sig": false,
"md5_digest": "c03ad8fc90964a359714e509eec5faca",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4557,
"upload_time": "2023-06-24T20:53:44",
"upload_time_iso_8601": "2023-06-24T20:53:44.992550Z",
"url": "https://files.pythonhosted.org/packages/03/d1/5dcacfcdea601166f17f309851f1b6ee4367a4d8731eb81ba9f6e95ac15d/micropython_wifi_communication-0.0.9.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-06-24 20:53:44",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "micropython-wifi-communication"
}