Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Where is the Data created for File-Transfer template on Fitbit Simulator Versa3

I created a new project using File-Transfer template. It runs successfully. Simulator show the data on device. But where is the file. If there is no file created then how do I create a TXT file in External Storage of Phone of simulator? Can I have a simulated Versa with physical phone device? 

 

 

Best Answer
0 Votes
11 REPLIES 11

On the phone, the file isn't accessible. You get the file's contents as data in the companion. Getting the data off the companion is difficult; fetch is your best bet.

Peter McLennan
Gondwana Software
Best Answer
0 Votes

Forgive me...I am new to Fit Bit but use Visual Studio 2019. What do you mean Companion? My impression is that once I get a Versa3, I pair it with my Android Phone which will get the data stored somewhere. Where and how do I see that data? Is there a path to that file in External Storage of the phone?

 

Additionally I can download projects from GIT into Visual Studio 2019 or Fit Bit Studio but it does not execute. How can I do that?

 

Thank you!

Best Answer

Visual Studio doesn't support Fitbit apps. You have to use Fitbit Studio or Fitbit CLI.

Peter McLennan
Gondwana Software
Best Answer
0 Votes

Thanks for clarifying about Visual Studio...Do you know how to answer the rest of my questions?

 

Thank You!

Best Answer
0 Votes

Not really; I don't quite understand them. If you want your data in a file, you'll have to write some tricky code to do it, unless you make do with what Fitbit provides from within the Fitbit app.

 

If you want synced data, investigate the Web API. If you want real-time data (or details such as accelerometer), investigate the Device and Companion APIs.

Peter McLennan
Gondwana Software
Best Answer
0 Votes

Well that is done in FitBit Studio. There is a file transfer sample that is in 5.0 Versa3. It sends data but where is it?

Best Answer
0 Votes

When a file is sent from companion (phone) to watch, it's stored in a file on the watch's file system, and is accessible via the FS API.

 

When a file is sent from watch to companion, it's not stored anywhere accessible. You get the contents of the file as data in your app code. See here.

Peter McLennan
Gondwana Software
Best Answer
0 Votes

I am with you so far. I wonder if you can go to Studio and create a file transfer App. when you run it on OS simulator it display a string on Versa3 simulator and I believe it is sending it to companion as well???? where is it on companion. Right now everything is simulator but if I get actual device where is the data on phone. 

 

Also GIT samples are not compatible for 5.0?????

Best Answer
0 Votes

The file isn't anywhere accessible on the companion (phone). If you want to get the data out of the companion, you have to use fetch() or WebSockets.

 

Some of the git samples probably haven't been updated to SDK5. There were breaking changes between SDK4 and SDK5. There's probably sufficient info to enable you to do it here.

Peter McLennan
Gondwana Software
Best Answer
0 Votes

if they are creating a new SDK that is different then previous then it behooves them to go to Android Wear OS that way they support multiple development platform such as Visual Studio. I am confused!!!!!

They expect me to help bridge a gap at an advance level between 4 and 5 when I don't even know how to put on my diapers or even do baby talk such as I am struggling here!

Best Answer
0 Votes

Is it possible that you can please Post a GIT type project here for 5.0 where we see the acceleration data from the Data-Transfer Sample on the Android Phone.

 

I feel that once I can see a skeletal structure then I can adapt it.

 

Thank you!

Best Answer
0 Votes