I just today switched to SDK 2.1 and I would like to start playing with the fit files through the FitContributor method.
Where can I find some clear documentation or working example to start?
Thanks in advance.
save_to_fit = App.getApp().getProperty("save_to_fit_prop");
if (save_to_fit) {
peakField = new[max_peaks];
for( var i = 0; i < max_peaks; i += 1 ) {
if ( peaks_seconds> 0) {
//System.println(i+"-"+System.getSystemStats().freeMemory);
peakField= createField("current_peak"+i, i, FitContributor.DATA_TYPE_STRING, {
:mesgType => FitContributor.MESG_TYPE_SESSION,
:count => 6,
:units => secondsToTime(peaks_seconds)
});
} else {
peakField= null;
}
}
}
[/CODE]
I'am in the limit of memory usage 32byte but App run ok.
Curiosly i can upload to Strava ok with this menssage "File partially damaged, it could have been truncated."
Thanks