框架bug更新

master
lxw 6 months ago
parent 6532da23df
commit 18898203d3

@ -53,7 +53,8 @@ public static class BitUtls
if (propertyType == STRING) if (propertyType == STRING)
{ {
return Convert.ChangeType(BytesToHexStr(bytes, start, length), propertyType);
return Convert.ChangeType(Encoding.ASCII.GetString(bytes, start, length), propertyType);
} }
if (propertyType == BYTEARRAY) if (propertyType == BYTEARRAY)

@ -110,7 +110,7 @@ public class TcpClient<TH, TD, TE> where TH : IChannelHandler
Connected = false; Connected = false;
Log.Info($"begin to connect {Host}:{Port}"); Log.Info($"begin to connect {Host}:{Port}");
while (Connected) while (!Connected)
{ {
try try
{ {

Loading…
Cancel
Save