Hi,
I have a problem with getting the value of Rest Distance & Elapsed Time in SWIFT (iOS).
I get the values from CBUUID(string: "CE060032-43E5-11E4-916C-0800200C9A66") but the values assigned to Rest Distance & Time are empties.
Where am I doing wrong please ?
This is how I get my values:
class func getRestDistance(value:NSData) -> Double {
let dataFromRowing = dataToUnsignedBytes8(value)
let restDistance:Double = Double(dataFromRowing[12]) * 256 + Double(dataFromRowing[11])
return restDistance
}
class func getRestTime(value:NSData) -> Double {
let dataFromRowing = dataToUnsignedBytes8(value)
let restTime:Double = (Double(dataFromRowing[15]) * 65536 + Double(dataFromRowing[14]) * 256 + Double(dataFromRowing[13])) / 100 // in seconds
return restTime
}
Thanks & Regards
Rest Distance & Elapsed Time
Post questions and issues with Concept2 PM3 SDK
Jump to
- Products
- ↳ Indoor Rowers
- ↳ Concept2 Dreissigacker Oars
- ↳ Concept2 SkiErg
- ↳ Concept2 BikeErg
- ↳ Concept2 StrengthErg
- Training
- ↳ FAQ
- ↳ Training
- ↳ Health & Fitness
- ↳ Competition
- ↳ Ergdata, Online Racing, Rowpro & RowIt
- ↳ Weight Loss & Weight Control
- ↳ On The Water
- ↳ Cross-Training
- ↳ Forum in het Nederlands
- ↳ Adaptive Athletes Forum
- General
- ↳ General
- ↳ Women's Forum
- ↳ Forum use, comments and suggestions
- ↳ Links and Articles
- Team/Club/University/Challenge Corner
- ↳ Individual Challenges
- ↳ Teams
- ↳ Virtual Team Challenge
- ↳ Archive
- ↳ World Erg Challenge
- ↳ Archive
- ↳ Fall Team Challenge
- ↳ Archive
- Software Development
- ↳ SDK Questions
- ↳ Bug Reports
- ↳ Feature/Function Requests
- Archived Posts (read only)
- ↳ Comments and feedback
- ↳ Posts from old forum
- ↳ DevSquad Archive