From 137a28c05ceacd0427fe1fb25b5a184d6b96985c Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Mon, 1 Aug 2016 20:30:34 +0200 Subject: Readme: login before accessing the device. Tests: change device to Nitrokey Pro Signed-off-by: Szczepan Zalega --- README.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 7766889..77378d7 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,9 @@ def get_hotp_code(lib, i): lib.NK_get_hotp_code(i) libnitrokey = get_library() +libnitrokey.NK_set_debug(False) # do not show debug messages +libnitrokey.NK_login('P') # connect to Nitrokey Pro device + hotp_slot_1_code = get_hotp_code(libnitrokey, 1) print (hotp_slot_1_code) -- cgit v1.2.1