增加电量报警模块

但是只是一部分功能
This commit is contained in:
2026-03-30 17:55:55 +08:00
parent 696144b2ff
commit 182186e1fb
22 changed files with 147 additions and 157 deletions

View File

@@ -336,7 +336,7 @@ namespace Common
CSRedisClient client = WhitchRedisSlice(SliceNo);
client.LPush(key, obj);
}
public static long MaxLen = 1000000;
public static long MaxLen = 500000;
public static void StreamAdd(int SliceNo, string key, string Value)
{
try

View File

@@ -484,6 +484,15 @@ namespace Common
}
return result.ToString();
}
public static string ByteToString_NoWhiteSpace(byte[] bytesData)
{
StringBuilder result = new StringBuilder();
foreach (byte r in bytesData)
{
result.Append(r.ToString("X2"));
}
return result.ToString();
}
/// <summary>
/// 把int32类型的数据转存到2个字节的byte数组中
/// </summary>