---
doc/agent-api.txt | 25 ++++++++++++++++++++++++-
1 files changed, 24 insertions(+), 1 deletions(-)
diff --git a/doc/agent-api.txt b/doc/agent-api.txt
index d215b9b..7d719ad 100644
--- a/doc/agent-api.txt
+++ b/doc/agent-api.txt
@@ -66,10 +66,19 @@ Fields string Name
The passphrase for a network. For example a WEP
key or a PSK passphrase.
+ string WPS
+
+ This field requests the use of WPS to get associated.
+ This is an alternate choice against Passphrase when
+ requested service supports WPS. Its content can be
+ either empty, whereas user wants to use push-button
+ method, or pin code meaning user wants to use the pin
+ method.
+
Arguments string Type
Contains the type of a field. For example "psk",
- "wep", "ssid" or plain "string".
+ "wep", "ssid", "pin" or plain "string".
string Requirement
@@ -109,3 +118,17 @@ Examples Requesting a passphrase for WPA2 network
}
}
==> { "Name" : "My hidden network" }
+
+ Requesting a passphrase for a WPA2 network with WPS alternative:
+
+ RequestInput("/service3",
+ { "Passphrase" : { "Type" : "psk",
+ "Requirement" : "mandatory",
+ "Alternates" : [ "WPS" ]
+ },
+ "WPS" : { "Type" : "pin",
+ "Requirement" : "alternate"
+ }
+ }
+
+ ==> { "WPS" : "123456" }
--
1.7.2.3
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman