private void ExecuteCmd(int address, CmdType cmdType, object data) { CmdData cmddata = new CmdData(); cmddata.address = address; cmddata.cmdType = cmdType; cmddata.data = data; this.Send(cmddata); }
public byte[] Encode(object CMD) { CmdData cmd = (CmdData)CMD; return(this.GenerateBytes(cmd.address, cmd.cmdType, cmd.data)); }