_network.pyi 851 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. STA_IF: int
  2. AP_IF: int
  3. STAT_IDLE: int
  4. STAT_CONNECTING: int
  5. STAT_WRONG_PASSWORD: int
  6. STAT_NO_AP_FOUND: int
  7. STAT_CONNECT_FAIL: int
  8. STAT_GOT_IP: int
  9. class WLAN:
  10. def __init__(self, interface_id: int): ...
  11. def active(self, is_active: int): ...
  12. def checkActive(self) -> int: ...
  13. def connect(self, ssid: str, key: str): ...
  14. def connectWithBssid(self, ssid: str, key: str, bssid: str): ...
  15. def disconnect(self): ...
  16. def status(self) -> int: ...
  17. def statusWithParam(self, param: str) -> int: ...
  18. def isconnected(self) -> int: ...
  19. def config(self, **kwargs): ...
  20. def checkConfig(self, param: str) -> any: ...
  21. def ifconfig(self, ip: str, mask: str, gateway: str, dns: str): ...
  22. def checkIfconfig(self) -> list: ...
  23. def scan(self) -> list: ...
  24. def close(self): ...
  25. def __init__(): ...