Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Device control: Wi-Fi #7

Open
geonnave opened this issue Sep 28, 2022 · 1 comment
Open

Device control: Wi-Fi #7

geonnave opened this issue Sep 28, 2022 · 1 comment
Labels

Comments

@geonnave
Copy link
Contributor

geonnave commented Sep 28, 2022

Implement the ability to control Wi-Fi connections.

  • This feature should consider possible conflicts with the GUI's Network Manager and wpa_supplicant. Maybe it could even be a wrapper around wpa_cli?
  • Minimal proposed API:
    • connect(ssid: str, password: str) -> True | False, ConnectionInfo
    • status() -> ConnectionInfo
  • Additional API functions:
    • connect_async(ssid: str, password: str, on_connect: lambda)
    • disconnect()

Finally, here's a suggestion for ConnectionInfo:

class ConnectionInfo:
  status = "disconnected" | "connecting" | "connected"
  interface # e.g., wlan0
  ip_address
  mac_address
@Luizorodrigues
Copy link

Equipe: @artur-papas, @Luizorodrigues, @GustavsC, @MarcioAkira

Biblioteca: PyRIC
Exemplo de uso: https://github.com/wraith-wireless/PyRIC/blob/master/tests/pyw.unittest.py
Biblioteca disponível no pypi.org: https://pypi.org/project/PyRIC/

Biblioteca: python3-wify
Exemplo de uso: https://github.com/llazzaro/python3-wifi/blob/master/examples/iwconfig.py
Biblioteca disponível no pypi.org: https://pypi.org/project/python-wifi/

Biblioteca: wifi 0.3.8
Exemplo de uso: https://wifi.readthedocs.io/en/latest/scanning.html
Biblioteca disponível no pypi.org: https://pypi.org/project/wifi/

zNexTage added a commit to zNexTage/caninos-sdk that referenced this issue Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants