LogData() public static method

public static LogData ( char cmd, byte data, int offset, int count ) : void
cmd char
data byte
offset int
count int
return void
Esempio n. 1
0
        public void SendACLData(byte[] buffer, int offset, int count)
        {
            int transferred;

            _writer.Write(buffer, offset, count, 10000, out transferred);

            lock (_writer)
            {
                Logger.LogData('I', buffer, offset, count);
            }
        }
Esempio n. 2
0
        private void reader_DataReceived(object sender, EndpointDataEventArgs e)
        {
            Logger.WriteLine("Incoming: " + BitConverter.ToString(e.Buffer, 0, e.Count));
            lock (_writer)
            {
                Logger.LogData('O', e.Buffer, 0, e.Count);
            }

            if (IncomingDataReceived != null)
            {
                IncomingDataReceived(this, new HCIEventEventArgs(e.Buffer, e.Count));
            }
        }