startHrStreaming method

Stream<PolarHrData> startHrStreaming(
  1. String identifier
)

Start heart rate stream. Heart rate stream is stopped if the connection is closed, error occurs or stream is disposed.

  • Parameters:
    • identifier: Polar device id or device address
  • Returns: Observable stream
    • onNext: for every air packet received. see PolarHrData
    • onError: see PolarErrors for possible errors invoked

Implementation

Stream<PolarHrData> startHrStreaming(String identifier) {
  return _startStreaming(PolarDataType.hr, identifier)
      .map(PolarHrData.fromJson);
}