public void SendData(byte[] data) { IDataLink dataLink = this.innerDataLink; if (dataLink != null) { dataLink.SendData(data); } }
public bool SendCommand(Message message) { bool success = false; byte[] values = _pp.MessageToBinaryData(message); if (values.Length > 0) { if (_datalink.Connected()) { success = _datalink.SendData(values); } } return(success); }