mirror of
https://git.disroot.org/pranav/pybatmesh.git
synced 2025-01-10 00:37:49 +05:30
initial implementation of iwd api
iwd.py is used to communicate with iwd via d-bus
This commit is contained in:
parent
8bdeddf08e
commit
ba2425f008
29
naxalnet/iwd.py
Normal file
29
naxalnet/iwd.py
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
"""Manage wifi adapter via iwd D-Bus api"""
|
||||||
|
|
||||||
|
|
||||||
|
class IWD:
|
||||||
|
"""Manage iwd via dbus"""
|
||||||
|
|
||||||
|
def __init__(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def get_devices(self):
|
||||||
|
"""
|
||||||
|
returns list of device names as str
|
||||||
|
example: ["wlan0", "wlan1"]
|
||||||
|
"""
|
||||||
|
|
||||||
|
def get_adapters(self):
|
||||||
|
"""
|
||||||
|
returns list of adapters
|
||||||
|
example: ["phy0","phy1"]
|
||||||
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
class Device:
|
||||||
|
"""control devices with iwd"""
|
||||||
|
|
||||||
|
def __init__(self, name: str):
|
||||||
|
pass
|
Loading…
x
Reference in New Issue
Block a user