2018-08-15 23:48:09 +02:00
|
|
|
Station hierarchy
|
|
|
|
=================
|
|
|
|
|
|
|
|
Service net.connman.iwd
|
2019-10-29 03:16:07 +01:00
|
|
|
Interface net.connman.iwd.Station
|
2019-10-28 17:30:44 +01:00
|
|
|
Object path /net/connman/iwd/{phy0,phy1,...}/{1,2,...}
|
2018-08-15 23:48:09 +02:00
|
|
|
|
|
|
|
Methods void Scan()
|
|
|
|
|
|
|
|
Schedule a network scan.
|
|
|
|
|
|
|
|
Possible errors: net.connman.iwd.Busy
|
|
|
|
net.connman.iwd.Failed
|
|
|
|
|
|
|
|
void Disconnect()
|
|
|
|
|
|
|
|
Disconnect from the network. This also disables
|
|
|
|
iwd from trying to autoconnect to any other network
|
|
|
|
with this device.
|
|
|
|
|
|
|
|
Possible errors: net.connman.iwd.Busy
|
|
|
|
net.connman.iwd.Failed
|
|
|
|
net.connman.iwd.NotConnected
|
|
|
|
|
|
|
|
array(on) GetOrderedNetworks()
|
|
|
|
|
|
|
|
Return the list of networks found in the most recent
|
|
|
|
scan, sorted by their user interface importance
|
|
|
|
score as calculated by iwd. If the device is
|
|
|
|
currently connected to a network, that network is
|
|
|
|
always first on the list, followed by any known
|
|
|
|
networks that have been used at least once before,
|
|
|
|
followed by any other known networks and any other
|
|
|
|
detected networks as the last group. Within these
|
|
|
|
groups the maximum relative signal-strength is the
|
|
|
|
main sorting factor.
|
|
|
|
|
|
|
|
Every record returned contains a tuple of the
|
|
|
|
following values.
|
|
|
|
|
|
|
|
object Object
|
|
|
|
|
|
|
|
net.connman.iwd.Network object representing
|
|
|
|
the network.
|
|
|
|
|
|
|
|
int16 SignalStrength
|
|
|
|
|
|
|
|
Network's maximum signal strength expressed
|
|
|
|
in 100 * dBm. The value is the range of 0
|
|
|
|
(strongest signal) to -10000 (weakest signal)
|
|
|
|
|
2018-11-09 20:43:19 +01:00
|
|
|
array(sns) GetHiddenAccessPoints() [experimental]
|
2018-08-15 23:48:09 +02:00
|
|
|
|
|
|
|
Returns a list (possibly empty) of detected hidden
|
2018-11-09 20:43:19 +01:00
|
|
|
access points. The list is sorted according to the
|
|
|
|
relative signal strength of each access point.
|
2018-08-15 23:48:09 +02:00
|
|
|
|
|
|
|
Every record returned contains a 3-tuple of the
|
|
|
|
following values.
|
|
|
|
|
|
|
|
string Address
|
|
|
|
|
2018-11-09 20:43:19 +01:00
|
|
|
Access Point's address
|
2018-08-15 23:48:09 +02:00
|
|
|
|
|
|
|
int16 SignalStrength
|
|
|
|
|
2018-11-09 20:43:19 +01:00
|
|
|
Access Point's signal strength expressed in
|
2018-08-15 23:48:09 +02:00
|
|
|
100 * dBm. The value is the range of 0
|
|
|
|
(strongest signal) to -10000 (weakest signal)
|
|
|
|
|
|
|
|
string Type
|
|
|
|
|
2018-11-09 20:43:19 +01:00
|
|
|
The type of the hidden Access Point. Same
|
|
|
|
values as Network.Type.
|
2018-08-15 23:48:09 +02:00
|
|
|
|
|
|
|
void ConnectHiddenNetwork(string ssid)
|
|
|
|
|
|
|
|
Tries to find and connect to a hidden network for the
|
|
|
|
first time. Only hidden networks of type 'psk' and
|
|
|
|
'open' are supported. WPA-Enterprise hidden networks
|
|
|
|
must be provisioned.
|
|
|
|
|
|
|
|
The ssid parameter is used to find the hidden network.
|
|
|
|
If no network with the given ssid is found, an
|
|
|
|
net.connman.iwd.NotFound error is returned.
|
|
|
|
|
|
|
|
In the unlikely case that both an open and pre-shared
|
|
|
|
key hidden network with the given ssid is found an
|
|
|
|
net.connman.iwd.ServiceSetOverlap error is returned.
|
|
|
|
|
|
|
|
Once the hidden network is found, the connection will
|
|
|
|
proceed as normal. So the user agent will be asked
|
|
|
|
for a passphrase, etc.
|
|
|
|
|
|
|
|
This method should only be called once to provision
|
|
|
|
a hidden network. For all future connections the
|
|
|
|
regular Network.Connect() API should be used.
|
|
|
|
|
|
|
|
Possible errors: net.connman.iwd.Busy
|
|
|
|
net.connman.iwd.Failed
|
2019-10-24 17:47:15 +02:00
|
|
|
net.connman.iwd.InvalidArguments
|
2018-08-15 23:48:09 +02:00
|
|
|
net.connman.iwd.NotConfigured
|
|
|
|
net.connman.iwd.NotConnected
|
|
|
|
net.connman.iwd.NotFound
|
|
|
|
net.connman.iwd.ServiceSetOverlap
|
|
|
|
net.connman.iwd.AlreadyProvisioned
|
|
|
|
net.connman.iwd.NotHidden
|
|
|
|
|
|
|
|
void RegisterSignalLevelAgent(object path,
|
|
|
|
array(int16) levels)
|
|
|
|
|
|
|
|
Register the agent object to receive signal strength
|
|
|
|
level change notifications on the
|
|
|
|
net.connman.iwd.SignalLevelAgent interface, see
|
2020-10-14 14:38:36 +02:00
|
|
|
below. The "levels" parameters decides the
|
|
|
|
thresholds in dBm that will generate a call to the
|
|
|
|
agent's Changed method whenever current RSSI crosses
|
|
|
|
any of the values. The values must be passed in
|
|
|
|
descending order. The number and distance between
|
|
|
|
requested threshold values is a compromise between
|
|
|
|
resolution and the frequency of system wakeups and
|
2020-01-21 07:21:38 +01:00
|
|
|
context-switches that are going to be occurring to
|
2018-08-15 23:48:09 +02:00
|
|
|
update the client's signal meter. Only one agent
|
|
|
|
can be registered at any time.
|
|
|
|
|
|
|
|
Possible Errors: [service].Error.InvalidArguments
|
|
|
|
[service].Error.Failed
|
|
|
|
[service].Error.AlreadyExists
|
|
|
|
[service].Error.NotSupported
|
|
|
|
|
|
|
|
void UnregisterSignalLevelAgent(object path)
|
|
|
|
|
|
|
|
Unregister an existing agent.
|
|
|
|
|
|
|
|
Possible Errors: [service].Error.InvalidArguments
|
|
|
|
[service].Error.NotFound
|
|
|
|
|
|
|
|
Properties string State [readonly]
|
|
|
|
|
|
|
|
Reflects the general network connection state. One of:
|
|
|
|
|
|
|
|
"connected", "disconnected", "connecting",
|
|
|
|
"disconnecting", "roaming"
|
|
|
|
|
|
|
|
object ConnectedNetwork [readonly, optional]
|
|
|
|
|
|
|
|
net.connman.iwd.Network object representing the
|
|
|
|
network the device is currently connected to or to
|
2019-10-29 03:23:05 +01:00
|
|
|
which a connection is in progress. This property
|
|
|
|
will be updated with the object path of the Network
|
|
|
|
object as soon as the connection process is initiated,
|
|
|
|
and will remain for as long as the connection is in
|
|
|
|
progress, completed and the network has not been
|
|
|
|
disconnected.
|
|
|
|
|
|
|
|
On disconnection this property becomes invalid and
|
|
|
|
disappears from the property list. Refer to the
|
|
|
|
State property documentation if you need to track
|
|
|
|
the actual state of the connection.
|
2018-08-15 23:48:09 +02:00
|
|
|
|
|
|
|
boolean Scanning [readonly]
|
|
|
|
|
2019-10-29 03:23:05 +01:00
|
|
|
Reflects whether the station is currently scanning
|
2018-08-15 23:48:09 +02:00
|
|
|
for networks. net.connman.iwd.Network objects are
|
|
|
|
updated when this property goes from true to false.
|
2019-10-24 00:43:10 +02:00
|
|
|
|
|
|
|
SignalLevelAgent hierarchy
|
|
|
|
==========================
|
|
|
|
|
|
|
|
Service unique name
|
|
|
|
Interface net.connman.iwd.SignalLevelAgent
|
|
|
|
Object path freely definable
|
|
|
|
|
2021-06-09 17:32:32 +02:00
|
|
|
Methods void Release(object device) [noreply]
|
2019-10-24 00:43:10 +02:00
|
|
|
|
|
|
|
This method gets called when the service daemon
|
|
|
|
unregisters the agent. An agent can use it to do
|
|
|
|
cleanup tasks. There is no need to unregister the
|
|
|
|
agent, because when this method gets called it has
|
|
|
|
already been unregistered.
|
|
|
|
|
2021-06-09 17:32:32 +02:00
|
|
|
void Changed(object device, uint8 level) [noreply]
|
2019-10-24 00:43:10 +02:00
|
|
|
|
|
|
|
This method gets called when the signal strength
|
|
|
|
measurement for the device's connected network
|
|
|
|
changes enough to go from one level to another out
|
|
|
|
of the N ranges defined by the array of (N-1)
|
2020-10-14 14:38:36 +02:00
|
|
|
threshold values passed to RegisterSignalLevelAgent().
|
|
|
|
The level parameter is in the range from 0 to N,
|
|
|
|
0 being the strongest signal or above the first
|
|
|
|
threshold value in the array, and N being the
|
|
|
|
weakest and below the last threshold value. For
|
|
|
|
example if RegisterSignalLevelAgent was called with
|
|
|
|
the array [-40, -50, -60], the 'level' parameter of
|
2019-10-24 00:43:10 +02:00
|
|
|
0 would mean signal is received at -40 or more dBm
|
|
|
|
and 3 would mean below -60 dBm and might correspond
|
|
|
|
to 1 out of 4 bars on a UI signal meter.
|