From e4261d164d89cfd3d9147e4856c4f50f6f01c0d0 Mon Sep 17 00:00:00 2001 From: Tim Kourt Date: Mon, 1 May 2017 10:23:50 -0700 Subject: [PATCH] client: WSC start-user-pin command --- client/wsc.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/client/wsc.c b/client/wsc.c index bb9686d5..751aaf04 100644 --- a/client/wsc.c +++ b/client/wsc.c @@ -59,7 +59,18 @@ static enum cmd_status cmd_push_button(const char *device_name, char *args) static enum cmd_status cmd_start_user_pin(const char *device_name, char *args) { - return CMD_STATUS_UNSUPPORTED; + const struct proxy_interface *proxy = device_wsc_get(device_name); + + if (!proxy) { + display("Invalid device name '%s'\n", device_name); + + return CMD_STATUS_INVALID_VALUE; + } + + proxy_interface_method_call(proxy, "StartPin", "s", + check_errors_method_callback, args); + + return CMD_STATUS_OK; } static enum cmd_status cmd_start_pin(const char *device_name, char *args)