start method

Future<void> start()

start sends start_oxi_packet to device.

Implementation

Future<void> start() async {
  await _getConfig();
  await _sendStart();

  _isMeasuring = true;
  _isPaused = false;

  ble.streams.oxi.preload
    ..raw = _getRaw().broadcast
    ..lzma = _getLzma().broadcast
    ..event = _getEvent()?.broadcast
    ..value = _getConverted().broadcast;
  ble.streams.oxi.original
    ..buffer = _getBuffered().broadcast
    ..plot = _getPlot().broadcast
    ..plotRT = _getPlotRT().broadcast;
  ble.streams.oxi.filter
    ..buffer = _getBufferedFilter().broadcast
    ..plot = null
    ..plotRT = null;
}