Merge pull request '修改温度/100' (#3) from master into fen

Reviewed-on: https://git.lgzn.space/gaoguozheng/nenglaingbiao/pulls/3
This commit is contained in:
高国正 2023-02-26 19:42:20 +08:00
commit ccba806965
9 changed files with 9 additions and 1 deletions

Binary file not shown.

View File

@ -38,7 +38,7 @@ namespace NengLiang
/// <summary> /// <summary>
/// 当前请求数据类型 /// 当前请求数据类型
/// </summary> /// </summary>
public static ushort index_id; public static ushort index_id = 3;
/// <summary> /// <summary>
/// 报文发送间隔时间 /// 报文发送间隔时间
/// </summary> /// </summary>
@ -458,10 +458,12 @@ namespace NengLiang
if (name == "供水温度") if (name == "供水温度")
{ {
number /= 100;
Console.WriteLine(name + ":" + number + "℃"); Console.WriteLine(name + ":" + number + "℃");
} }
else if (name == "回水温度") else if (name == "回水温度")
{ {
number /= 100;
Console.WriteLine(name + ":" + number + "℃"); Console.WriteLine(name + ":" + number + "℃");
} }
else if (name == "采样值") else if (name == "采样值")

View File

@ -563,3 +563,9 @@
------------------------------------------------ ------------------------------------------------
2023-02-26 16:32:26,562 [6] INFO loginfo - 接收到192.168.57.38:65042: 01 03 02 11 3C B4 05 2023-02-26 16:32:26,562 [6] INFO loginfo - 接收到192.168.57.38:65042: 01 03 02 11 3C B4 05
2023-02-26 16:32:40,705 [6] INFO loginfo - 接收到192.168.57.38:65042: 01 03 00 03 00 01 74 0A 2023-02-26 16:32:40,705 [6] INFO loginfo - 接收到192.168.57.38:65042: 01 03 00 03 00 01 74 0A
------------------------------------------------
2023-02-26 19:37:47,894 [6] INFO loginfo - 接收到192.168.57.38:51581: 01 03 00 03 00 01 74 0A
------------------------------------------------
2023-02-26 19:38:58,039 [4] INFO loginfo - 接收到192.168.57.38:51592: 01 03 02 11 3C B4 05
------------------------------------------------
2023-02-26 19:40:07,398 [3] INFO loginfo - 接收到192.168.57.38:51600: 01 03 02 0F B2 3D C1