Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

Java: Fit file recorded by Device Edge 810 has NULL value LocalTimestamp from ClassActivityMesg

Rank

Total Posts: 1

Joined 2017-02-09

PM

Hello Everyone:
Our user used Device Edge 810, and send Fit file to our server.
When server parse the Fit file, I can't get LocalTimestamp from ActivityMesg.
Here is my code.
MesgBroadcaster mesgBroadcaster = new MesgBroadcaster(decode);
mesgBroadcaster.addListener(new ActivityMesgListener() {
                
public void onMesg(ActivityMesg mesg{
                    long utc 
mesg.getTimestamp().getTimestamp();
     
long local;
                    
Long localTimestamp mesg.getLocalTimestamp();
     if (
localTimestamp == null{
     } 
else {
     }
                    long offset 
= (local utc) * 1000;
                    
sharedResultMap.put("timeZone"getTimeZone(offset));
                
}
            }
); 

We want to get LocalTimestamp , because we need to compute the Time Zone.
Except Device Edge 810, other device seem to all can support LocalTimestamp value.
Even if I used the newest fit.jar that is version 20.22.00, I still get NULL LocalTimestamp .
Is this a bug? Or Edge 810 not support LocalTimestamp for fit data. doesn't it?
Thank you.