public string ContentTest(string sendContent) { byte[] data = HslCommunication.BasicFramework.SoftBasic.HexStringToBytes(sendContent); string rst = ""; HslCommunication.OperateResult <byte[]> read = TCP.ReadFromCoreServer(data); if (read.IsSuccess) { // 获取结果,并转化为Hex字符串,方便显示 rst = HslCommunication.BasicFramework.SoftBasic.ByteToHexString(read.Content, ' '); } else { MsgChannl.SendMsg(read.Message); } return(rst); }