summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>2012-05-28 14:20:20 +0300
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-06-15 14:46:18 +0300
commit64be8612c32703d48da4c9f68fff888cb4ac1164 (patch)
treea5803585a546e880c7df2e2ef1fd4362193900d2 /doc
parent227bdf02f63fa348f6ebd30ac7fe005b396cdc4f (diff)
downloadconnman-64be8612c32703d48da4c9f68fff888cb4ac1164.tar.gz
connman-64be8612c32703d48da4c9f68fff888cb4ac1164.tar.bz2
connman-64be8612c32703d48da4c9f68fff888cb4ac1164.zip
doc: Add a new type and argument to agent RequestInput method call
Diffstat (limited to 'doc')
-rw-r--r--doc/agent-api.txt31
1 files changed, 29 insertions, 2 deletions
diff --git a/doc/agent-api.txt b/doc/agent-api.txt
index 71a02814..8201ac15 100644
--- a/doc/agent-api.txt
+++ b/doc/agent-api.txt
@@ -87,6 +87,15 @@ Fields string Name
key, a PSK passphrase or a passphrase for EAP
authentication methods.
+ string PreviousPassphrase
+
+ The previous passphrase successfully saved, i.e.
+ which lead to a successfull connection. This field is
+ provided as an informational argument when connecting
+ with it does not work anymore, for instance when it
+ has been changed on the AP. Such argument appears when
+ a RequestInput is raised after a retry.
+
string WPS
This field requests the use of WPS to get associated.
@@ -109,8 +118,9 @@ Fields string Name
Arguments string Type
Contains the type of a field. For example "psk", "wep"
- "passphrase", "response", "ssid", "wpspin" or plain
- "string".
+ "informational", "passphrase", "response", "ssid",
+ "wpspin" or plain "string". "informational" has no
+ "Requirement" but a "Value".
string Requirement
@@ -129,6 +139,11 @@ Arguments string Type
Contains the list of alternate field names this
field can be represented by.
+ string Value
+
+ Contains data as a string, relatively to an
+ "informational" argument.
+
Examples Requesting a passphrase for WPA2 network
RequestInput("/service1",
@@ -138,6 +153,18 @@ Examples Requesting a passphrase for WPA2 network
}
==> { "Passphrase" : "secret123" }
+ Requesting a passphrase after an error on the previous one:
+
+ RequestInput("/service1",
+ { "Passphrase" : { "Type" : "psk",
+ "Requirement" : "mandatory"
+ },
+ "PreviousPassphrase" :
+ { "Type" : "informational",
+ "Value" : "secret123"
+ }
+ }
+
Requesting name for hidden network
RequestInput("/service2",