Example #1
0
 private void writeBytes(byte[] buf, int offset, int size)
 {
     LOG.Debug("sending: " + LoggingUtilities.ByteArrayToString(buf, size));
     // converting from sync to async got rid of some of the apparent buffer corruption issues
     // when sending and receiving to the IOIO at the same time 2015/26/Apr
     //Stream_.Write(buf, offset, size);
     Stream_.WriteAsync(buf, offset, size);
 }
Example #2
0
 public override string ToString()
 {
     return(this.GetType().Name + ":" + " UartNum:" + UartNum + " NumBytes:" + NumDataBytes + " Data:" + LoggingUtilities.ByteArrayToString(this.Data, this.NumDataBytes));;
 }
Example #3
0
 public override string ToString()
 {
     return(this.GetType().Name + " Twi:" + this.TwiDef.TwiNum
            + " ExpectBack:" + this.NumBytesRead
            + " SendingBytes:" + LoggingUtilities.ByteArrayToString(this.Data, this.Data.Length));
 }