startEcgStreaming method
Start the ECG (Electrocardiography) stream. ECG stream is stopped if the connection is closed, error occurs or stream is disposed.
- Parameters:
- identifier: Polar device id or device address
- settings: selected settings to start the stream
- Returns: Observable stream
- onNext: for every air packet received. see
PolarEcgData
- onError: see
PolarErrors
for possible errors invoked
- onNext: for every air packet received. see
Implementation
Stream<PolarEcgData> startEcgStreaming(
String identifier, {
PolarSensorSetting? settings,
}) {
return _startStreaming(
PolarDataType.ecg,
identifier,
settings: settings,
).map(PolarEcgData.fromJson);
}