This commit is contained in:
hehaibing-1996
2024-07-05 14:36:34 +08:00
parent adb0367a83
commit ed3673db03
35 changed files with 1435 additions and 1939 deletions

View File

@ -1345,7 +1345,7 @@ namespace WCS.BLL.Services.Service
}
}
//发送间隔
Thread.Sleep(300);
//Thread.Sleep(300);
foreach (string shelfcode in WarnLightShelfCode)
{
List<ShelfInfo> si = DbHelp.db.Queryable<ShelfInfo>().Where(it => it.ShelfCode == shelfcode).ToList();
@ -1353,12 +1353,11 @@ namespace WCS.BLL.Services.Service
{
for (int i = 0; i < si.Count; i++)
{
Thread.Sleep(250);
TCPClient tCPClient = TCPClientManager.GetTCPClientByIPHost(si[i].ClientIp);
//byte[] warnlightOn = Helper.OutstoreWarnLight(si[i].LightId, LightColor, 0, 0);
byte[] warnlightOn = Helper.OutstoreWarnLight_1(si[i].LightId, LightColor, 0, 0);
tCPClient.Send(warnlightOn);
Logs.Write("出库,报警灯灭:" + BitConverter.ToString(warnlightOn));
Thread.Sleep(100);
}
}
}