|
@ -105,7 +105,13 @@ public class DiConWebsocket implements DiDeviceConnection { |
|
|
return ; |
|
|
return ; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
String cmd = DiByteBuffer.toHex(request.parameter); |
|
|
|
|
|
|
|
|
// build cmd from request.parameter |
|
|
|
|
|
request.parameter.rewind(); |
|
|
|
|
|
Charset charset = StandardCharsets.UTF_8; |
|
|
|
|
|
CharBuffer charBuffer = charset.decode(request.parameter); |
|
|
|
|
|
String cmd = charBuffer.toString(); |
|
|
|
|
|
|
|
|
|
|
|
// String cmd = DiByteBuffer.toHex(request.parameter); |
|
|
LOG.info("Command (Retry:{}) => {} : [{}]", request.timeoutCount, request.parameterText, cmd); |
|
|
LOG.info("Command (Retry:{}) => {} : [{}]", request.timeoutCount, request.parameterText, cmd); |
|
|
cmd = cmd.replace(" ",""); |
|
|
cmd = cmd.replace(" ",""); |
|
|
this.client.send(cmd); |
|
|
this.client.send(cmd); |
|
|