pikapython/package/network/_network.pyi
2023-01-25 14:14:05 +08:00

44 lines
851 B
Python

STA_IF: int
AP_IF: int
STAT_IDLE: int
STAT_CONNECTING: int
STAT_WRONG_PASSWORD: int
STAT_NO_AP_FOUND: int
STAT_CONNECT_FAIL: int
STAT_GOT_IP: int
class WLAN:
def __init__(self, interface_id: int): ...
def active(self, is_active: int): ...
def checkActive(self) -> int: ...
def connect(self, ssid: str, key: str): ...
def connectWithBssid(self, ssid: str, key: str, bssid: str): ...
def disconnect(self): ...
def status(self) -> int: ...
def statusWithParam(self, param: str) -> int: ...
def isconnected(self) -> int: ...
def config(self, **kwargs): ...
def checkConfig(self, param: str) -> any: ...
def ifconfig(self, ip: str, mask: str, gateway: str, dns: str): ...
def checkIfconfig(self) -> list: ...
def scan(self) -> list: ...
def close(self): ...
def __init__(): ...