Beispiel #1
0
        public void SendData(byte[] data)
        {
            IDataLink dataLink = this.innerDataLink;

            if (dataLink != null)
            {
                dataLink.SendData(data);
            }
        }
Beispiel #2
0
        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);
        }