aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md3
-rw-r--r--unittest/test_bindings.py2
2 files changed, 4 insertions, 1 deletions
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)
diff --git a/unittest/test_bindings.py b/unittest/test_bindings.py
index 9540888..afe7d0d 100644
--- a/unittest/test_bindings.py
+++ b/unittest/test_bindings.py
@@ -39,7 +39,7 @@ def C(request):
C = ffi.dlopen("../build/libnitrokey.so")
C.NK_set_debug(False)
- C.NK_login('S')
+ C.NK_login('P')
# assert C.NK_first_authenticate(DefaultPasswords.ADMIN, DefaultPasswords.ADMIN_TEMP) == DeviceErrorCode.STATUS_OK
# assert C.NK_user_authenticate(DefaultPasswords.USER, DefaultPasswords.USER_TEMP) == DeviceErrorCode.STATUS_OK