2019-10-24 17:38:59 +02:00
|
|
|
SimpleConfiguration hierarchy
|
|
|
|
=============================
|
2016-11-11 18:29:04 +01:00
|
|
|
|
|
|
|
Service net.connman.iwd
|
2019-10-24 17:38:59 +02:00
|
|
|
Interface net.connman.iwd.SimpleConfiguration
|
2019-10-28 17:30:44 +01:00
|
|
|
Object path /net/connman/iwd/{phy0,phy1,...}/{1,2,...}
|
2019-12-05 04:22:44 +01:00
|
|
|
Object path /net/connman/iwd/{phy0,phy1,...}/p2p_peers/{aa_bb_cc_dd_ee_ff}
|
2016-11-11 18:29:04 +01:00
|
|
|
|
2017-02-17 19:07:43 +01:00
|
|
|
Methods void PushButton()
|
2016-11-11 18:29:04 +01:00
|
|
|
|
|
|
|
Start WSC (formerly known as WPS, Wi-Fi Protected
|
2019-12-05 04:22:44 +01:00
|
|
|
Setup) configuration in PushButton mode or trigger a
|
|
|
|
connection to a specific P2P peer. The usage will
|
|
|
|
depend on which object this interface is found on.
|
2016-11-11 18:29:04 +01:00
|
|
|
|
2019-12-05 04:22:44 +01:00
|
|
|
In the first use case any connected networks on the
|
|
|
|
device will be disconnected and scanning will commence
|
|
|
|
to find the access point in PushButton mode. If
|
|
|
|
multiple access points are found, then a
|
|
|
|
SessionOverlap error will be returned.
|
2016-11-11 18:29:04 +01:00
|
|
|
|
|
|
|
This method returns once the configuration has been
|
2019-12-05 04:22:44 +01:00
|
|
|
completed and the network or the P2P peer has been
|
|
|
|
successfully connected.
|
2016-11-11 18:29:04 +01:00
|
|
|
|
|
|
|
Possible errors:
|
2019-10-24 17:38:59 +02:00
|
|
|
net.connman.iwd.SimpleConfiguration.SessionOverlap
|
|
|
|
net.connman.iwd.SimpleConfiguration.NoCredentials
|
|
|
|
net.connman.iwd.SimpleConfiguration.WalkTimerExpired
|
|
|
|
net.connman.iwd.SimpleConfiguration.NotReachable
|
2016-11-11 18:29:04 +01:00
|
|
|
net.connman.iwd.Aborted
|
|
|
|
net.connman.iwd.Failed
|
|
|
|
net.connman.iwd.Busy
|
2019-12-05 04:22:44 +01:00
|
|
|
net.connman.iwd.InvalidArguments
|
|
|
|
net.connman.iwd.NotSupported
|
2016-11-11 18:29:04 +01:00
|
|
|
|
2017-02-17 19:31:56 +01:00
|
|
|
string GeneratePin()
|
|
|
|
|
|
|
|
Generates a random 8 digit PIN with an included check
|
|
|
|
digit suitable for use by most user interfaces.
|
|
|
|
|
2017-02-23 00:02:59 +01:00
|
|
|
void StartPin(string pin)
|
2019-12-05 04:22:44 +01:00
|
|
|
|
|
|
|
Start WSC or connect to a specific P2P peer in PIN
|
|
|
|
mode. If iwd's WSC configuration indicates that the
|
|
|
|
device does not support a display, a static PIN from
|
|
|
|
the main.conf configuration file is used. Contents
|
|
|
|
of pin are ignored in this case.
|
2017-02-23 00:02:59 +01:00
|
|
|
|
|
|
|
Otherwise, the pin provided will be utilized. This
|
|
|
|
can be an automatically generated PIN that contains a
|
|
|
|
check digit, or a user-specified PIN. The
|
|
|
|
GeneratePin() method can be used a generate a random
|
|
|
|
8 digit PIN with an included check digit.
|
|
|
|
|
|
|
|
This method returns once the configuration has been
|
2019-12-05 04:22:44 +01:00
|
|
|
completed and the network or the P2P peer has been
|
|
|
|
successfully connected.
|
2017-02-23 00:02:59 +01:00
|
|
|
|
|
|
|
Possible errors:
|
2019-10-24 17:38:59 +02:00
|
|
|
net.connman.iwd.SimpleConfiguration.NoCredentials
|
|
|
|
net.connman.iwd.SimpleConfiguration.NotReachable
|
|
|
|
net.connman.iwd.SimpleConfiguration.WalkTimerExpired
|
2017-02-23 00:02:59 +01:00
|
|
|
net.connman.iwd.Aborted
|
|
|
|
net.connman.iwd.Failed
|
|
|
|
net.connman.iwd.Busy
|
2019-10-24 17:47:15 +02:00
|
|
|
net.connman.iwd.InvalidArguments
|
2017-02-23 00:02:59 +01:00
|
|
|
net.connman.iwd.InvalidFormat
|
2019-12-05 04:22:44 +01:00
|
|
|
net.connman.iwd.NotSupported
|
2017-02-23 00:02:59 +01:00
|
|
|
|
2016-11-11 18:29:04 +01:00
|
|
|
void Cancel()
|
|
|
|
|
2019-12-05 04:22:44 +01:00
|
|
|
Aborts any ongoing WSC operations or a P2P connection.
|
|
|
|
If no operation is ongoing, net.connman.iwd.NotAvailable
|
|
|
|
is returned.
|