NetworkManager¶
Méthodes¶
NetworkManager.ConnectWifiNetwork¶
ADMIN
Connect to the wifi network with the given ssid and password.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
interface |
String |
|
password |
String |
optionnel |
ssid |
String |
Retour :
| Champ | Type | Notes |
|---|---|---|
networkManagerError |
NetworkManagerError |
NetworkManager.CreateWiredConnection¶
ADMIN
Create a wired connection.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
interface |
String |
|
dns |
String |
optionnel |
gateway |
String |
optionnel |
ip |
String |
optionnel |
prefix |
Uint |
optionnel |
type |
WiredNetworkConnectionType |
Retour :
| Champ | Type | Notes |
|---|---|---|
networkManagerError |
NetworkManagerError |
NetworkManager.DisconnectInterface¶
ADMIN
Disconnect the given network interface. The interface will remain disconnected until the user connect it again.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
interface |
String |
Retour :
| Champ | Type | Notes |
|---|---|---|
networkManagerError |
NetworkManagerError |
NetworkManager.EnableNetworking¶
ADMIN
Enable or disable networking in the NetworkManager.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
enable |
Bool |
Retour :
| Champ | Type | Notes |
|---|---|---|
networkManagerError |
NetworkManagerError |
NetworkManager.EnableWirelessNetworking¶
ADMIN
Enable or disable wireless networking in the NetworkManager.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
enable |
Bool |
Retour :
| Champ | Type | Notes |
|---|---|---|
networkManagerError |
NetworkManagerError |
NetworkManager.GetNetworkDevices¶
ADMIN
Get the list of current network devices.
Paramètres :
Aucun paramètre.
Retour :
| Champ | Type | Notes |
|---|---|---|
networkManagerError |
NetworkManagerError | |
wiredNetworkDevices |
WiredNetworkDevice[] | optionnel |
wirelessNetworkDevices |
WirelessNetworkDevice[] | optionnel |
NetworkManager.GetNetworkStatus¶
ADMIN
Get the current network manager status.
Paramètres :
Aucun paramètre.
Retour :
| Champ | Type | Notes |
|---|---|---|
networkManagerError |
NetworkManagerError | |
status |
{'networkingEnabled': 'Bool', 'state': '$ref:NetworkManagerState', 'wirelessNetworkingEnabled': 'Bool'} |
optionnel |
NetworkManager.GetWirelessAccessPoints¶
ADMIN
Get the current list of wireless network access points for the given interface. The interface has to be a WirelessNetworkDevice.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
interface |
String |
Retour :
| Champ | Type | Notes |
|---|---|---|
networkManagerError |
NetworkManagerError | |
wirelessAccessPoints |
WirelessAccessPoint[] | optionnel |
NetworkManager.ScanWifiNetworks¶
ADMIN
Start a wifi scan for searching new networks.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
interface |
String |
Retour :
| Champ | Type | Notes |
|---|---|---|
networkManagerError |
NetworkManagerError |
NetworkManager.StartAccessPoint¶
ADMIN
Start a WiFi Access point on the given interface with the given SSID and password. Use DisconnectInterface to stop it again.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
interface |
String |
|
password |
String |
|
ssid |
String |
Retour :
| Champ | Type | Notes |
|---|---|---|
networkManagerError |
NetworkManagerError |
Notifications¶
NetworkManager.NetworkStatusChanged¶
Emitted whenever a status of a NetworkManager changes.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
status |
{'networkingEnabled': 'Bool', 'state': '$ref:NetworkManagerState', 'wirelessNetworkingEnabled': 'Bool'} |
NetworkManager.WiredNetworkDeviceAdded¶
Emitted whenever a new WiredNetworkDevice was added.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
wiredNetworkDevice |
WiredNetworkDevice |
NetworkManager.WiredNetworkDeviceChanged¶
Emitted whenever the given WiredNetworkDevice has changed.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
wiredNetworkDevice |
WiredNetworkDevice |
NetworkManager.WiredNetworkDeviceRemoved¶
Emitted whenever a WiredNetworkDevice was removed.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
interface |
String |
NetworkManager.WirelessNetworkDeviceAdded¶
Emitted whenever a new WirelessNetworkDevice was added.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
wirelessNetworkDevice |
WirelessNetworkDevice |
NetworkManager.WirelessNetworkDeviceChanged¶
Emitted whenever the given WirelessNetworkDevice has changed.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
wirelessNetworkDevice |
WirelessNetworkDevice |
NetworkManager.WirelessNetworkDeviceRemoved¶
Emitted whenever a WirelessNetworkDevice was removed.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
interface |
String |