NM.WifiP2PPeer¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
|
r |
||
r |
|||
r |
|||
r |
|||
r |
|||
r |
|||
r |
|||
r |
|||
r |
|||
r |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class NM.WifiP2PPeer(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
New in version 1.16.
- connection_valid(connection)¶
- Parameters:
connection (
NM.Connection
) – anNM.Connection
to validate against self- Returns:
True
if the connection may be activated with this Wi-Fi P2P Peer,False
if it cannot be.- Return type:
Validates a given connection against a given Wi-Fi P2P peer to ensure that the connection may be activated with that peer. The connection must match the self's address and in the future possibly other attributes.
New in version 1.16.
- filter_connections(connections)¶
- Parameters:
connections ([
NM.Connection
]) – an array ofNM.Connections
to filter- Returns:
an array of
NM.Connections
that could be activated with the given self. The array should be freed with g_ptr_array_unref() when it is no longer required.- Return type:
Filters a given array of connections for a given
NM.WifiP2PPeer
object and returns connections which may be activated with the P2P peer. Any returned connections will match the peers's HW address and in the future possibly other attributes.To obtain the list of connections that are compatible with this P2P peer, use
NM.Client.get_connections
() and then filter the returned list for a givenNM.Device
usingNM.Device.filter_connections
() and finally filter that list with this function.New in version 1.16.
- get_flags()¶
- Returns:
the flags
- Return type:
NM.80211ApFlags
Gets the flags of the P2P peer.
New in version 1.16.
- get_hw_address()¶
- Returns:
the hardware address
- Return type:
Gets the hardware address of the P2P peer.
New in version 1.16.
- get_last_seen()¶
- Returns:
the last seen time in seconds
- Return type:
Returns the timestamp (in CLOCK_BOOTTIME seconds) for the last time the P2P peer was seen. A value of -1 means the P2P peer has never been seen.
New in version 1.16.
- get_manufacturer()¶
- Returns:
the manufacturer
- Return type:
Gets the manufacturer of the P2P peer.
New in version 1.16.
- get_model()¶
- Returns:
the model
- Return type:
Gets the model of the P2P peer.
New in version 1.16.
- get_model_number()¶
- Returns:
the model number
- Return type:
Gets the model number of the P2P peer.
New in version 1.16.
- get_serial()¶
- Returns:
the serial number
- Return type:
Gets the serial number of the P2P peer.
New in version 1.16.
- get_strength()¶
- Returns:
the signal strength (0 to 100)
- Return type:
Gets the current signal strength of the P2P peer as a percentage.
New in version 1.16.
- get_wfd_ies()¶
- Returns:
the
GLib.Bytes
containing the WFD IEs, orNone
.- Return type:
Gets the WFD information elements of the P2P peer.
New in version 1.16.
Property Details¶
- NM.WifiP2PPeer.props.flags¶
- Name:
flags
- Type:
NM.80211ApFlags
- Default Value:
NM.80211ApFlags.NONE
- Flags:
The flags of the P2P peer.
New in version 1.16.
- NM.WifiP2PPeer.props.hw_address¶
-
The hardware address of the P2P peer.
New in version 1.16.
- NM.WifiP2PPeer.props.last_seen¶
-
The timestamp (in CLOCK_BOOTTIME seconds) for the last time the P2P peer was found. A value of -1 means the peer has never been seen.
New in version 1.16.
- NM.WifiP2PPeer.props.manufacturer¶
-
The manufacturer of the P2P peer.
New in version 1.16.
- NM.WifiP2PPeer.props.model¶
-
The model of the P2P peer.
New in version 1.16.
- NM.WifiP2PPeer.props.model_number¶
-
The hardware address of the P2P peer.
New in version 1.16.
- NM.WifiP2PPeer.props.name¶
-
The name of the P2P peer.
New in version 1.16.
- NM.WifiP2PPeer.props.serial¶
-
The serial number of the P2P peer.
New in version 1.16.
- NM.WifiP2PPeer.props.strength¶
- Name:
strength
- Type:
- Default Value:
0
- Flags:
The current signal strength of the P2P peer.
New in version 1.16.
- NM.WifiP2PPeer.props.wfd_ies¶
- Name:
wfd-ies
- Type:
- Default Value:
- Flags:
The WFD information elements of the P2P peer.
New in version 1.16.