Watch decoder not working for a device

anshuljain7 years ago

Hi Anton

I am configure watch type of protocol and is not working. It is returning null due to FrameDecoder.

Hex: 5b33472a3335323636313039303134333135302a303030412a4c4b2c302c302c3130305d

It is returning null due to below code.(WatchFrameDecoder)

        int payloadIndex = buf.indexOf(lengthIndex, buf.writerIndex(), (byte) '*');
        if (payloadIndex < 0) {
            return null;
        }

Could you please check once and let me know what is wrong here.

Anton Tananaev7 years ago

I have fixed the issue.

anshuljain7 years ago

Thanks Anton for the fix.