Project v1

This commit is contained in:
Ádám Kovács
2023-11-02 16:02:16 +01:00
parent 70e8d2d79a
commit db76621806
171 changed files with 23617 additions and 0 deletions

39
.vscode/Pico-W-Stub/aioble/l2cap.pyi vendored Normal file
View File

@@ -0,0 +1,39 @@
from .core import ble as ble, log_error as log_error, register_irq_handler as register_irq_handler
from .device import DeviceConnection as DeviceConnection
from _typeshed import Incomplete
_IRQ_L2CAP_ACCEPT: Incomplete
_IRQ_L2CAP_CONNECT: Incomplete
_IRQ_L2CAP_DISCONNECT: Incomplete
_IRQ_L2CAP_RECV: Incomplete
_IRQ_L2CAP_SEND_READY: Incomplete
_listening: bool
def _l2cap_irq(event, data) -> None: ...
def _l2cap_shutdown() -> None: ...
class L2CAPDisconnectedError(Exception): ...
class L2CAPConnectionError(Exception): ...
class L2CAPChannel:
_connection: Incomplete
our_mtu: int
peer_mtu: int
_cid: Incomplete
_status: int
_stalled: bool
_data_ready: bool
_event: Incomplete
def __init__(self, connection) -> None: ...
def _assert_connected(self) -> None: ...
async def recvinto(self, buf, timeout_ms: Incomplete | None = ...): ...
def available(self): ...
async def send(self, buf, timeout_ms: Incomplete | None = ..., chunk_size: Incomplete | None = ...) -> None: ...
async def flush(self, timeout_ms: Incomplete | None = ...) -> None: ...
async def disconnect(self, timeout_ms: int = ...) -> None: ...
async def disconnected(self, timeout_ms: int = ...) -> None: ...
async def __aenter__(self): ...
async def __aexit__(self, exc_type, exc_val, exc_traceback) -> None: ...
async def accept(connection, psm, mtu, timeout_ms): ...
async def connect(connection, psm, mtu, timeout_ms): ...