pikapython/package/network/_network.pyi

42 lines
825 B
Python
Raw Normal View History

2023-01-24 21:10:06 +08:00
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
2023-01-24 21:00:02 +08:00
class WLAN:
2023-01-24 21:10:06 +08:00
def __init__(self, interface_id: int): ...
def active(self, is_active: int): ...
def checkActive(self) -> int: ...
def connect(self, ssid: str, key: str): ...
2023-01-24 21:00:02 +08:00
2023-01-24 21:10:06 +08:00
def connectWIthBssid(self, ssid: str, key: str, bssid: str): ...
2023-01-24 21:00:02 +08:00
2023-01-24 21:10:06 +08:00
def disconnect(self): ...
2023-01-24 21:00:02 +08:00
2023-01-24 21:10:06 +08:00
def status(self) -> int: ...
2023-01-24 21:00:02 +08:00
2023-01-24 21:10:06 +08:00
def statusWithParam(self, param: str) -> int: ...
2023-01-24 21:00:02 +08:00
2023-01-24 21:10:06 +08:00
def isconnected(self) -> int: ...
2023-01-24 21:00:02 +08:00
2023-01-24 21:10:06 +08:00
def config(self, **kwargs): ...
2023-01-24 21:00:02 +08:00
2023-01-24 21:10:06 +08:00
def checkConfig(self, param: str) -> any: ...
2023-01-24 21:00:02 +08:00
2023-01-24 23:40:41 +08:00
def ifconfig(self, ip: str, mask: str, gateway: str, dns: str): ...
2023-01-24 21:00:02 +08:00
2023-01-24 23:40:41 +08:00
def checkIfconfig(self) -> list: ...
def scan(self) -> list: ...
2023-01-24 21:00:02 +08:00
2023-01-24 21:10:06 +08:00
def __init__(): ...