Wahoo Fitness API  3.6.1
Documentation for the iPhone version of the Wahoo Fitness API.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
WFWeightScaleConnection.h
Go to the documentation of this file.
1 //
2 // WFWeightScaleConnection.h
3 // WFConnector
4 //
5 // Created by Michael Moore on 11/10/10.
6 // Copyright 2010 Wahoo Fitness. All rights reserved.
7 //
8 
9 #import <WFConnector/_WFWeightScaleConnection.h>
10 #import <WFConnector/WFSensorConnection.h>
11 #import <WFConnector/WFWeightScaleDelegate.h>
12 
13 #define WF_LAST_SYNC_KEY @"WFBTLEScaleLastSyncTime"
14 #define WFCP_USER_RECORD_QUEUE_SIZE 16
15 
16 @class WFWeightScaleData;
18 @class WFConnectionParams;
19 
20 
22 typedef enum
23 {
26 
28 
29 
30 
31 
36 {
37  id<WFWeightScaleDelegate> wsDelegate;
40 }
41 
42 
47 @property (nonatomic, retain ) id<WFWeightScaleDelegate> wsDelegate;
48 
49 /*---ANT+ WEIGHT SCALE SENSORS--*/
50 
60 - (WFWeightScaleData*)getWeightScaleData;
61 
73 - (BOOL)setWeightScaleUserProfile:(WFWeightScaleUserProfile_t*)pstData;
74 
75 
76 
77 
78 
79 /*---BTLE (WAHOO) WEIGHT SCALE SENSOR--*/
80 
90 - (BOOL)setDisplayUnitType:(WFBTLEWeightScaleUnitType_t)unitType;
91 
97 - (BOOL)requestAllHistory;
98 
104 - (BOOL)requestHistorySinceLastSync;
105 
114 - (BOOL)requestHistorySinceTimestamp:(NSTimeInterval)timestamp;
115 
121 - (BOOL)clearAllHistory;
122 
134 - (BOOL)clearHistoryRecordWithTimestamp:(NSTimeInterval)timestamp;
135 
136 
147 - (BOOL)storeUserRecord:(WFBTLEWeightScaleUser*)userRecord;
148 
154 - (BOOL)requestAllUserRecords;
155 
161 - (BOOL)clearAllUserRecords;
162 
170 - (BOOL)clearUserRecordWithId:(int)userId;
171 
183 - (BOOL)assignUserId:(int)userId toHistoryRecordWithTimestamp:(NSTimeInterval)timestamp;
184 
190 - (NSTimeInterval)getLastSyncTime;
191 
192 
193 + (BOOL)configureConditionalConnection:(WFConnectionParams*)params lastSyncDate:(NSDate*)syncDate;
194 
195 @end
Internal-use base class for the WFWeightScaleConnection.
Definition: _WFWeightScaleConnection.h:15
WFBTLEWeightScaleUnitType_t
Represents the units displayed on the scale LCD.
Definition: WFWeightScaleConnection.h:22
BOOL _waitingForUserId
Definition: WFWeightScaleConnection.h:39
Represents the connection parameters used to establish a connection to an ANT device.
Definition: WFConnectionParams.h:23
id< WFWeightScaleDelegate > wsDelegate
Specifies the WFWeightScaleDelegate instance which will handle callback methods for this WFWeightScal...
Definition: WFWeightScaleConnection.h:38
Represents a connection to an ANT+ or BTLE Weight Scale sensor.
Definition: WFWeightScaleConnection.h:35
WFBTLEWeightScaleUser * _userRecordWaitingForId
Definition: WFWeightScaleConnection.h:40
Represents the data available from the ANT+ Weight Scale sensor.
Definition: WFWeightScaleData.h:24
signed char BOOL
Definition: types.h:110
Definition: WFWeightScaleConnection.h:24
Definition: WFWeightScaleConnection.h:25
Represents a User Profile for the Wahoo Fitness BTLE Weight Scale.
Definition: WFBTLEWeightScaleUser.h:20
Provides the interface for callback methods used by the WFWeightScaleConnection.
Definition: WFWeightScaleDelegate.h:21
Describes user profile data for the weight scale.
Definition: hardware_connector_types.h:457