kopia lustrzana https://github.com/micropython/micropython-lib
all: Change use of "uasyncio" to "asyncio".
Signed-off-by: Damien George <damien@micropython.org>pull/880/head
rodzic
1f019f90ea
commit
7271f1ddc7
|
@ -4,7 +4,7 @@ A supplementary module which extends the micropython `espnow` module to provide
|
|||
`asyncio` support.
|
||||
|
||||
- Asyncio support is available on all ESP32 targets as well as those ESP8266
|
||||
boards which include the `uasyncio` module (ie. ESP8266 devices with at least
|
||||
boards which include the `asyncio` module (ie. ESP8266 devices with at least
|
||||
2MB flash storage).
|
||||
|
||||
## API reference
|
||||
|
@ -52,7 +52,7 @@ A small async server example::
|
|||
```python
|
||||
import network
|
||||
import aioespnow
|
||||
import uasyncio as asyncio
|
||||
import asyncio
|
||||
|
||||
# A WLAN interface must be active to send()/recv()
|
||||
network.WLAN(network.STA_IF).active(True)
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
# aioespnow module for MicroPython on ESP32 and ESP8266
|
||||
# MIT license; Copyright (c) 2022 Glenn Moloney @glenn20
|
||||
|
||||
import uasyncio as asyncio
|
||||
import asyncio
|
||||
import espnow
|
||||
|
||||
|
||||
# Modelled on the uasyncio.Stream class (extmod/stream/stream.py)
|
||||
# NOTE: Relies on internal implementation of uasyncio.core (_io_queue)
|
||||
# Modelled on the asyncio.Stream class (extmod/asyncio/stream.py)
|
||||
# NOTE: Relies on internal implementation of asyncio.core (_io_queue)
|
||||
class AIOESPNow(espnow.ESPNow):
|
||||
# Read one ESPNow message
|
||||
async def arecv(self):
|
||||
|
|
|
@ -41,7 +41,7 @@ async def execute(code, g, s):
|
|||
code = "return {}".format(code)
|
||||
|
||||
code = """
|
||||
import uasyncio as asyncio
|
||||
import asyncio
|
||||
async def __code():
|
||||
{}
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ from micropython import const
|
|||
import bluetooth
|
||||
import struct
|
||||
|
||||
import uasyncio as asyncio
|
||||
import asyncio
|
||||
|
||||
from .core import (
|
||||
ensure_active,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
from micropython import const
|
||||
from collections import deque
|
||||
import uasyncio as asyncio
|
||||
import asyncio
|
||||
import struct
|
||||
|
||||
import bluetooth
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
from micropython import const
|
||||
|
||||
import uasyncio as asyncio
|
||||
import asyncio
|
||||
import binascii
|
||||
|
||||
from .core import ble, register_irq_handler, log_error
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
from micropython import const
|
||||
|
||||
import uasyncio as asyncio
|
||||
import asyncio
|
||||
|
||||
from .core import ble, log_error, register_irq_handler
|
||||
from .device import DeviceConnection
|
||||
|
|
|
@ -6,7 +6,7 @@ from micropython import const
|
|||
import bluetooth
|
||||
import struct
|
||||
|
||||
import uasyncio as asyncio
|
||||
import asyncio
|
||||
|
||||
from .core import (
|
||||
ensure_active,
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# MIT license; Copyright (c) 2021 Jim Mussared
|
||||
|
||||
from micropython import const, schedule
|
||||
import uasyncio as asyncio
|
||||
import asyncio
|
||||
import binascii
|
||||
import json
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
from micropython import const
|
||||
from collections import deque
|
||||
import bluetooth
|
||||
import uasyncio as asyncio
|
||||
import asyncio
|
||||
|
||||
from .core import (
|
||||
ensure_active,
|
||||
|
|
|
@ -10,7 +10,7 @@ sys.path.append("")
|
|||
|
||||
from micropython import const
|
||||
|
||||
import uasyncio as asyncio
|
||||
import asyncio
|
||||
import aioble
|
||||
import bluetooth
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ sys.path.append("")
|
|||
|
||||
from micropython import const
|
||||
|
||||
import uasyncio as asyncio
|
||||
import asyncio
|
||||
import aioble
|
||||
import bluetooth
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ sys.path.append("")
|
|||
|
||||
from micropython import const
|
||||
|
||||
import uasyncio as asyncio
|
||||
import asyncio
|
||||
import aioble
|
||||
import bluetooth
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ sys.path.append("")
|
|||
|
||||
from micropython import const
|
||||
|
||||
import uasyncio as asyncio
|
||||
import asyncio
|
||||
import aioble
|
||||
import bluetooth
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ from micropython import const
|
|||
import machine
|
||||
import time
|
||||
|
||||
import uasyncio as asyncio
|
||||
import asyncio
|
||||
import aioble
|
||||
import bluetooth
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ from micropython import const
|
|||
import machine
|
||||
import time
|
||||
|
||||
import uasyncio as asyncio
|
||||
import asyncio
|
||||
import aioble
|
||||
import bluetooth
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ from micropython import const
|
|||
import machine
|
||||
import time
|
||||
|
||||
import uasyncio as asyncio
|
||||
import asyncio
|
||||
import aioble
|
||||
import bluetooth
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ from micropython import const
|
|||
import machine
|
||||
import time
|
||||
|
||||
import uasyncio as asyncio
|
||||
import asyncio
|
||||
import aioble
|
||||
import bluetooth
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ from micropython import const
|
|||
import machine
|
||||
import time
|
||||
|
||||
import uasyncio as asyncio
|
||||
import asyncio
|
||||
import aioble
|
||||
import bluetooth
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ from micropython import const
|
|||
import machine
|
||||
import time
|
||||
|
||||
import uasyncio as asyncio
|
||||
import asyncio
|
||||
import aioble
|
||||
import bluetooth
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ from micropython import const
|
|||
import machine
|
||||
import time
|
||||
|
||||
import uasyncio as asyncio
|
||||
import asyncio
|
||||
import aioble
|
||||
import bluetooth
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ from micropython import const
|
|||
import machine
|
||||
import time
|
||||
|
||||
import uasyncio as asyncio
|
||||
import asyncio
|
||||
import aioble
|
||||
import bluetooth
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ from micropython import const
|
|||
import machine
|
||||
import time
|
||||
|
||||
import uasyncio as asyncio
|
||||
import asyncio
|
||||
import aioble
|
||||
import bluetooth
|
||||
import random
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
uaiohttpclient is an HTTP client module for MicroPython uasyncio module,
|
||||
uaiohttpclient is an HTTP client module for MicroPython asyncio module,
|
||||
with API roughly compatible with aiohttp (https://github.com/KeepSafe/aiohttp)
|
||||
module. Note that only client is implemented, for server see picoweb
|
||||
microframework.
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# uaiohttpclient - fetch URL passed as command line argument.
|
||||
#
|
||||
import sys
|
||||
import uasyncio as asyncio
|
||||
import asyncio
|
||||
import uaiohttpclient as aiohttp
|
||||
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
metadata(description="HTTP client module for MicroPython uasyncio module", version="0.5.2")
|
||||
metadata(description="HTTP client module for MicroPython asyncio module", version="0.5.2")
|
||||
|
||||
# Originally written by Paul Sokolovsky.
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import uasyncio as asyncio
|
||||
import asyncio
|
||||
|
||||
|
||||
class ClientResponse:
|
||||
|
|
Ładowanie…
Reference in New Issue