[][src]Function nitrokey_sys::NK_connect_with_ID

pub unsafe extern "C" fn NK_connect_with_ID(id: *const c_char) -> c_int

Connects to the device with given ID. ID's list could be created with NK_list_devices_by_cpuID. Requires calling to NK_list_devices_by_cpuID first. Connecting to arbitrary ID/USB path is not handled. On connection requests status from device and disconnects it / removes from map on connection failure. Storage only @param id Target device ID (example: '00005d19:dacc2cb4_p_0001:0010:02') @return 1 on successful connection, 0 otherwise