|
|
|
@ -33,8 +33,6 @@ public class Decoder : ByteToMessageDecoder
|
|
|
|
|
Log.Info($"receive {BitUtls.BytesToHexStr(bytes)}");
|
|
|
|
|
|
|
|
|
|
int id = BitConverter.ToInt32(new byte[] { bytes[3], bytes[2], bytes[1], bytes[0] }, 0);
|
|
|
|
|
Log.Info(
|
|
|
|
|
$"receive id={id} {BitUtls.BytesToHexStr(BitConverter.GetBytes(0x1882D0F3))} {BitUtls.BytesToHexStr(BitConverter.GetBytes(4090528280))}");
|
|
|
|
|
BaseMsg baseMsg = id switch
|
|
|
|
|
{
|
|
|
|
|
0x1882D0F3 => ModelConvert.Decode<SocMsg>(bytes),
|
|
|
|
|