Hello,
Is there any documentation describing which fields of the record message are written depending on the device model and the activity profile (sport / sub_sport)?
Thanks!
Hello,
Is there any documentation describing which fields of the record message are written depending on the device model and the activity profile (sport / sub_sport)?
Thanks!
The data that ends up in the Record messages depends on the sport & sub-sport, the sensors that are connected or enabled, and what features the user has enabled.
The Decoding FIT Activity Files recipe suggests using the FIT to CSV Tool to survey the message definitions for a few sample files to see what type of data that you can expect in your application.
https://developer.garmin.com/fit/cookbook/decoding-activity-files/
At runtime you can calculate the list of fields using message listeners. That way you do not need to make assumptions. All of the SDKs support message listeners. Here are examples of doing this in JavaScript, Python, and C#.
https://github.com/garmin/fit-javascript-sdk#mesglistener--messagenumber-message--
https://github.com/garmin/fit-python-sdk#mesg_listener
https://github.com/garmin/fit-csharp-sdk/blob/main/Cookbook/ActivityDecode/FitDecoder.cs#L93