|
|
|
|
@ -192,6 +192,15 @@ namespace Sln.Iot.Business
|
|
|
|
|
|
|
|
|
|
iotEnvInstant.vibrationTemp = (decimal)f_vibrationTemp;
|
|
|
|
|
break;
|
|
|
|
|
case CommParams.Displacement: //位移
|
|
|
|
|
byteBlock.Read(out byte[] displacement, 4);
|
|
|
|
|
base._stringChange.SwapBytes(ref displacement);
|
|
|
|
|
float f_displacement = BitConverter.ToSingle(displacement, 0);
|
|
|
|
|
|
|
|
|
|
ValueIsNan(ref f_displacement);
|
|
|
|
|
|
|
|
|
|
iotEnvInstant.displacement = (decimal)f_displacement;
|
|
|
|
|
break;
|
|
|
|
|
case CommParams.CJSJ:
|
|
|
|
|
byteBlock.Read(out byte[] b_CJSJ, 6);
|
|
|
|
|
string strDateTime = "20" + b_CJSJ[5].ToString("x2")
|
|
|
|
|
|