1
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user