wei
2020-12-24 d1af1b8337591363e60c286348501a841138dbb3
HDL_ON/DAL/DriverLayer/Control_Udp.cs
old mode 100755 new mode 100644
@@ -158,6 +158,10 @@
        {
            foreach (var f in scene.functions)
            {
                if(f.localFunction == null)
                {
                    continue;
                }
                switch (f.localFunction.functionType)
                {
                    case FunctionType.Curtain:
@@ -249,7 +253,7 @@
                            }
                        }
                        ControlBytesSend(Command.SetSingleLight, f.localFunction.bus.SubnetID, f.localFunction.bus.DeviceID,
                            new byte[] { f.localFunction.bus.LoopId, brightness });
                            new byte[] { f.localFunction.bus.LoopId, brightness, (byte)(f.localFunction.delay / 255), (byte)(f.localFunction.delay % 255) });
                        break;
                    case FunctionType.RGB:
                        break;
@@ -728,7 +732,7 @@
                        UdpSocket._BusSocket.AsyncBeginSend(packet);
                        controlLostCount++;
                    }
                    System.Threading.Thread.Sleep(100);
                    System.Threading.Thread.Sleep(300);
                }
            }
            catch (Exception ex)
@@ -861,7 +865,7 @@
            {
                wait(); 
            }
            //MainPage.Log($"发送Hdl-Link数据,IP:{Control.Ins.reportIp}:8585");
            MainPage.Log($"发送Hdl-Link数据,IP:{Control.Ins.reportIp}:8585");
        }
    }