Interface PolarOnlineStreamingApi

    • Constructor Detail

    • Method Detail

      • requestStreamSettings

         abstract PolarSensorSetting requestStreamSettings(String identifier, PolarBleApi.PolarDeviceDataType feature)

        Request the online stream settings available in current operation mode. This request shall be used before the stream is started to decide currently available settings. The available settings depend on the state of the device. For example, if any stream(s) or optical heart rate measurement is already enabled, then the device may limit the offer of possible settings for other stream feature.

        Parameters:
        identifier - polar device id or bt address
        feature - the stream feature of interest
        Returns:

        PolarSensorSetting with available settings

      • requestFullStreamSettings

         abstract PolarSensorSetting requestFullStreamSettings(String identifier, PolarBleApi.PolarDeviceDataType feature)

        Request the settings available in the device. The request returns all capabilities of the requested streaming feature not limited by the current operation mode.

        Note, This request is supported only by Polar Verity Sense (starting from firmware 1.1.5)

        Parameters:
        identifier - polar device id or bt address
        feature - the stream feature of interest
        Returns:

        PolarSensorSetting with full settings

      • stopHrStreaming

         abstract Unit stopHrStreaming(String identifier)

        Stops heart rate stream.

        Parameters:
        identifier - Polar device id found printed on the sensor/device or bt address
      • startEcgStreaming

         abstract Flow<PolarEcgData> startEcgStreaming(String identifier, PolarSensorSetting sensorSetting)

        Start the ECG (Electrocardiography) stream. ECG stream is stopped if the connection is closed, error occurs or flow collection is cancelled.

        Parameters:
        identifier - Polar device id found printed on the sensor/device or bt address
        sensorSetting - settings to be used to start streaming
        Returns:

        Flow of PolarEcgData

      • startAccStreaming

         abstract Flow<PolarAccelerometerData> startAccStreaming(String identifier, PolarSensorSetting sensorSetting)

        Start ACC (Accelerometer) stream. ACC stream is stopped if the connection is closed, error occurs or flow collection is cancelled.

        Parameters:
        identifier - Polar device id found printed on the sensor/device or bt address
        sensorSetting - settings to be used to start streaming
        Returns:

        Flow of PolarAccelerometerData

      • startPpgStreaming

         abstract Flow<PolarPpgData> startPpgStreaming(String identifier, PolarSensorSetting sensorSetting)

        Start optical sensor PPG (Photoplethysmography) stream. PPG stream is stopped if the connection is closed, error occurs or flow collection is cancelled.

        Parameters:
        identifier - Polar device id found printed on the sensor/device or bt address
        sensorSetting - settings to be used to start streaming
        Returns:

        Flow of PolarPpgData

      • startPpiStreaming

         abstract Flow<PolarPpiData> startPpiStreaming(String identifier)

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

        Parameters:
        identifier - Polar device id found printed on the sensor/device or bt address
        Returns:

        Flow of PolarPpiData

      • startMagnetometerStreaming

         abstract Flow<PolarMagnetometerData> startMagnetometerStreaming(String identifier, PolarSensorSetting sensorSetting)

        Start magnetometer stream. Magnetometer stream is stopped if the connection is closed, error occurs or flow collection is cancelled.

        Parameters:
        identifier - Polar device id found printed on the sensor/device or bt address
        sensorSetting - settings to be used to start streaming
        Returns:

        Flow of PolarMagnetometerData

      • startGyroStreaming

         abstract Flow<PolarGyroData> startGyroStreaming(String identifier, PolarSensorSetting sensorSetting)

        Start Gyro stream. Gyro stream is stopped if the connection is closed, error occurs during start or flow collection is cancelled.

        Parameters:
        identifier - Polar device id found printed on the sensor/device or bt address
        sensorSetting - settings to be used to start streaming
        Returns:

        Flow of PolarGyroData