startPpiStreaming method

Stream<PolarPpiData> startPpiStreaming(
  1. String identifier
)

Start PPI (Pulse to Pulse interval) stream. PPI stream is stopped if the connection is closed, error occurs or stream is disposed. Notice that there is a delay before PPI data stream starts.

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

Implementation

Stream<PolarPpiData> startPpiStreaming(String identifier) {
  return _startStreaming(PolarDataType.ppi, identifier)
      .map(PolarPpiData.fromJson);
}