@ -53,7 +53,8 @@ public static class BitUtls
if (propertyType == STRING)
{
return Convert.ChangeType(BytesToHexStr(bytes, start, length), propertyType);
return Convert.ChangeType(Encoding.ASCII.GetString(bytes, start, length), propertyType);
}
if (propertyType == BYTEARRAY)
@ -110,7 +110,7 @@ public class TcpClient<TH, TD, TE> where TH : IChannelHandler
Connected = false;
Log.Info($"begin to connect {Host}:{Port}");
while (Connected)
while (!Connected)
try