eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

wsc-api.txt (2607B)


      1 SimpleConfiguration hierarchy
      2 =============================
      3 
      4 Service		net.connman.iwd
      5 Interface	net.connman.iwd.SimpleConfiguration
      6 Object path	/net/connman/iwd/{phy0,phy1,...}/{1,2,...}
      7 Object path	/net/connman/iwd/{phy0,phy1,...}/p2p_peers/{aa_bb_cc_dd_ee_ff}
      8 
      9 Methods		void PushButton()
     10 
     11 			Start WSC (formerly known as WPS, Wi-Fi Protected
     12 			Setup) configuration in PushButton mode or trigger a
     13 			connection to a specific P2P peer.  The usage will
     14 			depend on which object this interface is found on.
     15 
     16 			In the first use case any connected networks on the
     17 			device will be disconnected and scanning will commence
     18 			to find the access point in PushButton mode.  If
     19 			multiple access points are found, then a
     20 			SessionOverlap error will be returned.
     21 
     22 			This method returns once the configuration has been
     23 			completed and the network or the P2P peer has been
     24 			successfully connected.
     25 
     26 			Possible errors:
     27 			net.connman.iwd.SimpleConfiguration.SessionOverlap
     28 			net.connman.iwd.SimpleConfiguration.NoCredentials
     29 			net.connman.iwd.SimpleConfiguration.WalkTimerExpired
     30 			net.connman.iwd.SimpleConfiguration.NotReachable
     31 			net.connman.iwd.Aborted
     32 			net.connman.iwd.Failed
     33 			net.connman.iwd.Busy
     34 			net.connman.iwd.InvalidArguments
     35 			net.connman.iwd.NotSupported
     36 
     37 		string GeneratePin()
     38 
     39 			Generates a random 8 digit PIN with an included check
     40 			digit suitable for use by most user interfaces.
     41 
     42 		void StartPin(string pin)
     43 
     44 			Start WSC or connect to a specific P2P peer in PIN
     45 			mode.  If iwd's WSC configuration indicates that the
     46 			device does not support a display, a static PIN from
     47 			the main.conf configuration file is used.  Contents
     48 			of pin are ignored in this case.
     49 
     50 			Otherwise, the pin provided will be utilized.  This
     51 			can be an automatically generated PIN that contains a
     52 			check digit, or a user-specified PIN.  The
     53 			GeneratePin() method can be used a generate a random
     54 			8 digit PIN with an included check digit.
     55 
     56 			This method returns once the configuration has been
     57 			completed and the network or the P2P peer has been
     58 			successfully connected.
     59 
     60 			Possible errors:
     61 			net.connman.iwd.SimpleConfiguration.NoCredentials
     62 			net.connman.iwd.SimpleConfiguration.NotReachable
     63 			net.connman.iwd.SimpleConfiguration.WalkTimerExpired
     64 			net.connman.iwd.Aborted
     65 			net.connman.iwd.Failed
     66 			net.connman.iwd.Busy
     67 			net.connman.iwd.InvalidArguments
     68 			net.connman.iwd.InvalidFormat
     69 			net.connman.iwd.NotSupported
     70 
     71 		void Cancel()
     72 
     73 			Aborts any ongoing WSC operations or a P2P connection.
     74 			If no operation is ongoing, net.connman.iwd.NotAvailable
     75 			is returned.