![]() |
Wahoo Fitness API
3.6.1
Documentation for the iPhone version of the Wahoo Fitness API.
|
Represents a connection to an ANT+ Heart Rate Monitor sensor. More...
#import <WFHeartrateConnection.h>
Instance Methods | |
(void) | - disconnect |
Disconnects the sensor. More... | |
(void) | - disconnect: |
Disconnects the sensor and for BTLE peripheral, ensures the BTLE connection is closed. More... | |
(WFSensorData *) | - getData |
Retrieves the most current data available from the sensor. More... | |
(WFHeartrateData *) | - getHeartrateData |
Returns the latest data available from the sensor. More... | |
(WFHeartrateRawData *) | - getHeartrateRawData |
Returns the latest raw (unformatted) data available from the sensor. More... | |
(WFWahooMotionAnalysisData *) | - getMotionAnalysisData |
Returns the latest data available from the sensor. More... | |
(WFSensorData *) | - getRawData |
Retrieves the most current raw data available from the sensor. More... | |
(BOOL) | - hasData |
Returns a boolean value indicating whether new data is available. More... | |
(WFBTLEServiceProcessor *) | - serviceProcessorForSensorType: |
Returns a WFBTLEService derived instance which handles BTLE service processing for the specified sensor type. More... | |
(float) | - signalEfficiency |
Returns the signal efficiency for the connected sensor. More... | |
Methods related to Activity Type Management | |
(BOOL) | - getActivityType |
Request the current activity type from the device. More... | |
(BOOL) | - setActivityType: |
Set the activity type (mode) of the device. More... | |
Methods related to Motion Analysis Calibration Management | |
(BOOL) | - getActivityCalibrationForActivityType: |
Request the current calibration profile from the device for a specific activity type. More... | |
(BOOL) | - setActivityCalibration: |
Set the calibration profile on the device for a specific activity type. More... | |
(BOOL) | - resetActivityCalibrationToDefaultsForActivityType: |
Reset the calibration to default for a specific activity type. More... | |
Methods related to device vibration | |
(BOOL) | - performVibrationWithPattern: |
Perform vibration. More... | |
Protected Attributes | |
id < WFWahooActivitySessionManagementDelegate > | activitySessionManagementDelegate |
id < WFHeartrateConnectionTICKRXDelegate > | heartrateConnectionTICKRXDelegate |
The delegate which will receive TICKRX related callbacks. More... | |
id < WFHeartrateConnectionTICKRXSpeedProvider > | motionAnalysisProcessingSpeedProvider |
The delegate responsible for returning current speed used in motion analysis processing. More... | |
Properties | |
WFSensorConnectionStatus_t | connectionStatus |
Gets the current connection status. More... | |
id< WFSensorConnectionDelegate > | delegate |
Specifies the WFSensorConnectionDelegate instance which will handle callback methods for this WFSensorConnection. More... | |
NSString * | deviceIDString |
Returns the Device ID of the connected sensor for both ANT and BTLE. More... | |
WFDeviceInformation * | deviceInformation |
USHORT | deviceNumber |
Gets the ANT device ID of the connected sensor. More... | |
NSString * | deviceUUIDString |
Specifies the BTLE Device UUID String. More... | |
BOOL | didTimeout |
Gets a boolean value indicating whether a connection timeout occurred. More... | |
WFSensorConnectionError_t | error |
Get the error status for the connection. More... | |
BOOL | hasAntBridgeSupport |
Gets a boolean value indicating whether this WFSensorConnection instance is connected to a device which supports the Wahoo Fitness ANT Bridge. More... | |
BOOL | hasError |
TRUE if an error has occured, otherwise FALSE . More... | |
BOOL | hasValidParams |
Gets a boolean value indicating whether this WFSensorConnection has valid connection parameters. More... | |
BOOL | hasWildcardParams |
Gets a boolean value indicating whether the connection parameters for this WFSensorConnection indicate a wildcard search. More... | |
BOOL | isANTConnection |
TRUE if the sensor is a ANT device, otherwise FALSE . More... | |
BOOL | isBTLEConnection |
TRUE if the sensor is a BTLE device, otherwise FALSE . More... | |
BOOL | isConnected |
TRUE if the sensor is currently connected, otherwise FALSE . More... | |
BOOL | isValid |
Gets a boolean value indicating whether this WFSensorConnection instance is valid. More... | |
WFNetworkType_t | networkType |
Specifies the network type of this WFSensorConnection (ANT+, BTLE, etc). More... | |
WFSensorSubType_t | sensorSubType |
Gets the sensor sub type for this WFSensorConnection. More... | |
WFSensorType_t | sensorType |
Gets the sensor type for this WFSensorConnection. More... | |
BOOL | tickrxDeviceIsReady |
A flag to indicate if the device is ready - if the device is not yet ready, commands should not be sent. More... | |
NSTimeInterval | timeSinceLastMessage |
Gets the time since the last ANT message was received (in seconds). More... | |
UCHAR | transmissionType |
Gets the ANT transmission type of the connected sensor. More... | |
Represents a connection to an ANT+ Heart Rate Monitor sensor.
- (void) disconnect |
Disconnects the sensor.
- (void) disconnect: | (BOOL) | bKillPeripheralConnection |
Disconnects the sensor and for BTLE peripheral, ensures the BTLE connection is closed.
BTLE peripheral connections are held in a "peripheral pool" to facilitate multiple logical connections to the same physical device. Normally, when the last logical connection (WFSensorConnection) is disconnected, the BTLE connection will be held in the pool briefly to reduce the overhead of any subsequent connection requests from the application. To override this behaviour, the disconnect: method may be invoked with the bKillPeripheralConnection
parameter set to TRUE
. In this case, if the WFSensorConnection requesting the disconnect is the last logical connection to the BTLE peripheral, the BTLE peripheral connection will be closed immediately and the BTLE peripheral will be removed from the pool.
bKillPeripheralConnection
parameter.bKillPeripheralConnection | TRUE if the underlying BTLE connection should be closed immediately, otherwise FALSE . |
- (BOOL) getActivityCalibrationForActivityType: | (WFWahooMotionAnalysisActivityType_t) | activityType |
Request the current calibration profile from the device for a specific activity type.
The delegate will be notified using the appropriate callback.
FALSE
if the command could not be sent.TRUE
does not guarantee that the command completed successfully. Provided by category WFHeartrateConnection(TICKRX).
- (BOOL) getActivityType |
Request the current activity type from the device.
The delegate will be notified using the appropriate callback.
FALSE
if the command could not be sent.TRUE
does not guarantee that the command completed successfully. Provided by category WFHeartrateConnection(TICKRX).
- (WFSensorData*) getData |
Retrieves the most current data available from the sensor.
nil
. - (WFHeartrateData*) getHeartrateData |
Returns the latest data available from the sensor.
nil
. - (WFHeartrateRawData*) getHeartrateRawData |
Returns the latest raw (unformatted) data available from the sensor.
nil
. - (WFWahooMotionAnalysisData*) getMotionAnalysisData |
Returns the latest data available from the sensor.
nil
. Provided by category WFHeartrateConnection(TICKRX).
- (WFSensorData*) getRawData |
Retrieves the most current raw data available from the sensor.
nil
. - (BOOL) hasData |
Returns a boolean value indicating whether new data is available.
TRUE
if new data is available since the last time getData was invoked, otherwise FALSE
. - (BOOL) performVibrationWithPattern: | (NSArray *) | vibrationPattern |
Perform vibration.
vibrationPattern | The vibration timing pattern, consisting of an array with up to five vibration step objects. Each step object is a dictionary containing vibration on- and off duration in seconds:"onDuration": @(<on duration in seconds>), @"offDuration": @(<off duration="" in="" seconds>="">)} |
Provided by category WFHeartrateConnection(TICKRX).
- (BOOL) resetActivityCalibrationToDefaultsForActivityType: | (WFWahooMotionAnalysisActivityType_t) | activityType |
Reset the calibration to default for a specific activity type.
The delegate will be notified using the appropriate callback.
activityType | The activity type for which the calibration should be reset. |
FALSE
if the command could not be sent.TRUE
does not guarantee that the command completed successfully. Provided by category WFHeartrateConnection(TICKRX).
- (WFBTLEServiceProcessor*) serviceProcessorForSensorType: | (WFSensorType_t) | eSensorType |
Returns a WFBTLEService derived instance which handles BTLE service processing for the specified sensor type.
eSensorType | The sensor type. |
nil
. - (BOOL) setActivityCalibration: | (WFWahooMotionAnalysisCalibrationProfile *) | calibrationProfile |
Set the calibration profile on the device for a specific activity type.
The delegate will be notified using the appropriate callback.
calibrationProfile | The desired calibration profile to upload to the device. Note that the calibration profile itself belongs to a specific activity type. |
FALSE
if the command could not be sent.TRUE
does not guarantee that the command completed successfully. Provided by category WFHeartrateConnection(TICKRX).
- (BOOL) setActivityType: | (WFWahooMotionAnalysisActivityType_t) | activityType |
Set the activity type (mode) of the device.
The delegate will be notified using the appropriate callback.
activityType | The desired activity type for the device. |
FALSE
if the command could not be sent.TRUE
does not guarantee that the command completed successfully. Provided by category WFHeartrateConnection(TICKRX).
- (float) signalEfficiency |
Returns the signal efficiency for the connected sensor.
-1
.
|
protected |
|
readwritenonatomicassignprotected |
The delegate which will receive TICKRX related callbacks.
Provided by category WFHeartrateConnection(TICKRX).
|
readwritenonatomicassignprotected |
The delegate responsible for returning current speed used in motion analysis processing.
Provided by category WFHeartrateConnection(TICKRX).
|
readnonatomicassigninherited |
Gets the current connection status.
|
readwritenonatomicretaininherited |
Specifies the WFSensorConnectionDelegate instance which will handle callback methods for this WFSensorConnection.
|
readnonatomicassigninherited |
Returns the Device ID of the connected sensor for both ANT and BTLE.
|
readnonatomicretaininherited |
|
readnonatomicassigninherited |
Gets the ANT device ID of the connected sensor.
|
readnonatomicassigninherited |
Specifies the BTLE Device UUID String.
|
readnonatomicassigninherited |
Gets a boolean value indicating whether a connection timeout occurred.
|
readnonatomicassigninherited |
Get the error status for the connection.
|
readnonatomicassigninherited |
Gets a boolean value indicating whether this WFSensorConnection instance is connected to a device which supports the Wahoo Fitness ANT Bridge.
|
readnonatomicassigninherited |
TRUE
if an error has occured, otherwise FALSE
.
|
readnonatomicassigninherited |
Gets a boolean value indicating whether this WFSensorConnection has valid connection parameters.
When the WFSensorConnection is initiated as a wildcard search, the connection parameters (WFSensorConnection::deviceNumber, WFSensorConnection::transmissionType, etc.) are not set to a specific device. Once the sensor connection is established, the connection parameters will contain values which uniquely identify the connected sensor. At this point the connection parameters may be persisted and used in the future to establish a connection with this same sensor (pairing).
The value of this property is TRUE
when the connection parameters are suitable for uniquely identifying a specific sensor. Otherwise, the value is FALSE
.
|
readnonatomicassigninherited |
Gets a boolean value indicating whether the connection parameters for this WFSensorConnection indicate a wildcard search.
|
readnonatomicassigninherited |
TRUE
if the sensor is a ANT device, otherwise FALSE
.
|
readnonatomicassigninherited |
TRUE
if the sensor is a BTLE device, otherwise FALSE
.
|
readnonatomicassigninherited |
TRUE
if the sensor is currently connected, otherwise FALSE
.
|
readnonatomicassigninherited |
Gets a boolean value indicating whether this WFSensorConnection instance is valid.
The WFSensorConnection is invalidated when the sensor is disconnected, or when the API is reset.
|
readnonatomicassigninherited |
Specifies the network type of this WFSensorConnection (ANT+, BTLE, etc).
|
readnonatomicassigninherited |
Gets the sensor sub type for this WFSensorConnection.
|
readnonatomicassigninherited |
Gets the sensor type for this WFSensorConnection.
|
readnonatomicassign |
A flag to indicate if the device is ready - if the device is not yet ready, commands should not be sent.
When the device is not yet ready, the hrTICKRXConnectionDidReceiveDeviceReady: delegate callback should be called after a short period of time (this should not take longer than 5 seconds after the device connection is correctly established).
Provided by category WFHeartrateConnection(TICKRX).
|
readnonatomicassigninherited |
Gets the time since the last ANT message was received (in seconds).
WF_INVALID_DATA_TIME
if unknown or invalid.
|
readnonatomicassigninherited |
Gets the ANT transmission type of the connected sensor.