void WriteBytes(byte[] data) { if (serialIoManager.IsOpen) { port.Write(data, WRITE_WAIT_MILLIS); } }
void WriteData(byte[] data) { try { if (serialIoManager.IsOpen) { port.Write(data, 200); } } catch (Exception ex) { bluetoothData1.Text = ex.Message; } }
private void WriteData(byte[] data) { if (_serialIoManager.IsOpen) { try { _port.Write(data, UsbWriteDataTimeOut); } catch (Exception) { ToastService.ToastShortMessage(AppResources.Write_Failed); return; } _sentDataCount++; NotifyPropertyChanged(nameof(SentDataCount)); } }
void WriteData(byte[] data) { try { if (serialIoManager.IsOpen) { port.Write(data, WRITE_WAIT_MILLIS); } } catch (Exception ex) { dumpTextView.Append(ex.Message); scrollView.SmoothScrollTo(0, dumpTextView.Bottom); } }
public void Write(byte[] b) { port.Write(b, 100); }