private void checkConnectedPrinters() {
        for (int i = 0; i < 3; i++) {
            String usbId;
            byte[] array = new byte[32];
            int returnedVal;

            if (i == 0) {
                returnedVal = eZioLib.FindFirstUSB(array);
                usbId = new String(array).trim();
            } else {
                returnedVal = eZioLib.FindNextUSB(array);
                usbId = new String(array).trim();
            }

            eZioLib.closeport();

            if (returnedVal == 1) {
                System.out.println("Connected printer via USB: " + usbId);
            } else {
                System.out.println("Disconnected printer via USB: " + usbId);
            }
        }
    }