1 Reply Latest reply on May 23, 2016 10:19 AM by Gregory Pawlik

    KR403 java sendAndWaitForResponse

    Plagnes Didier

      Hello,

       

      I am using sendAndWaitForResponse with java

       

      byte[] message = usb.sendAndWaitForResponse("~HQES".getBytes(), 1000, 1000,null);

      String test = "";

                 for(int i= 0; i < message.length;i++)

                 {

                     test = test + message[i];

                 }

                 System.out.println("HQES 1 : " + message.length + " ; " + test);

       

      message.length is 132

      test = 2131013103232808273788469823283846584858332323232323232323232323232323232323232323232323213103232326982827982835832323232323232323248324848484848484848324848484848484848323213103232328765827873787183583232323232323249324848484848484848324848484848485148323213103

       

      How can I do for use this string ??

      do you have java exemple ?

       

      tanks very much

       

      Didier