| | |
| | | var deviceId = function.bus_Data.DeviceID; |
| | | var loopId = function.bus_Data.LoopID; |
| | | |
| | | |
| | | switch (function.functionCategory) |
| | | { |
| | | case FunctionCategory.Light: |
| | |
| | | { |
| | | case FunctionType.Fan: |
| | | var fan = function as Fan; |
| | | ControlBytesSend(Command.SetSingleLightACK, subnetId, deviceId, new byte[] { fan.bus_Data.LoopID }); |
| | | ControlBytesSend(Command.SetSingleLight, subnetId, deviceId, new byte[] { fan.bus_Data.LoopID }); |
| | | break; |
| | | } |
| | | break; |
| | |
| | | { |
| | | case FunctionType.Socket: |
| | | var s = function as SwitchSocket; |
| | | ControlBytesSend(Command.SetSingleLightACK, subnetId, deviceId, new byte[] { s.bus_Data.LoopID }); |
| | | ControlBytesSend(Command.SetSingleLight, subnetId, deviceId, new byte[] { s.bus_Data.LoopID }); |
| | | break; |
| | | } |
| | | break; |