difference between c# and java write() -
i trying establish serialport communication between eftpos terminal connected serialport , computer. eftpos manual has c# code testing , in have following lines write port , read port straightaway.
port.writeline("@pl");
console.writeline(port.readline());
but in java if use application goes halt. using eventhandlers in java read response eftpos terminal. still couldnot work. have doubt writeline("@pl") of c# , outputstream.write(bytearray) of java. these 2 methods phrases string in same whay when written on port ?? because eftpos respond if message "@pl". solution problem great relief me..
it's possible they're writing in different encodings. if eftpos terminal expecting ascii , java writing utf-16, won't work.
Comments
Post a Comment