liuwf 3 months ago
parent 1908ab07d6
commit 73a3dc003f

@ -45,9 +45,6 @@ namespace SlnMesnac.Common
{
try
{
string[] data1 = new string[] { "123" };
// string[] data = new string[] { "202408101111" };
string aaa = fj500sF.SendData(data1, 1);
//端口名 注:因为使用的是USB转RS232 所以去设备管理器中查看一下虚拟com口的名字
serialPort.PortName = "COM1";// portName;
@ -107,9 +104,9 @@ namespace SlnMesnac.Common
/// <param name="data"></param>
public void SendData(string data)
{
string[] data1 = new string[] { "123" };
// string[] data = new string[] { "202408101111" };
fj500sF.SendData( data1, 2);
// string[] data1 = new string[] { "123" };
//// string[] data = new string[] { "202408101111" };
// fj500sF.SendData( data1, 2);

Loading…
Cancel
Save