Skip to main content

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()

Release files for micropython-wifi-communication 0.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for micropython-wifi-communication 0.0.9
File Size Uploaded
micropython_wifi_communication-0.0.9.tar.gz 4.6 kB Details

Release files / micropython_wifi_communication-0.0.9.tar.gz

Download URL micropython_wifi_communication-0.0.9.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a0544d7e16833c2ad1ef499ecfa764c4edef302f4d511d329a15256d365df8b5
BLAKE2b-256 checksum
How to use checksums
03d15dcacfcdea601166f17f309851f1b6ee4367a4d8731eb81ba9f6e95ac15d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release history Release notifications | RSS feed

This release

0.0.9 This release

1 release file

0.0.8

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page