03-13-2023 08:42
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

03-13-2023 08:42
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi,
I'm trying to code an app for my Sense which stores sensors data in binary files into the smatwatch.
I would like to know if it's possible to directly access those files on my computer (Windows 11) from the watch through the USB charger or not ? Or do I have to code a companion app on a smartphone to access the data first ?
Thank you for your help 🙂
Answered! Go to the Best Answer.
Accepted Solutions
03-13-2023 12:30
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


03-13-2023 12:30
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
The latter.
You'll also need your companion app to onforward the data to a server somewhere (which could be on the same phone), because the companion app itself can't store files that are accessible on the phone.
Gondwana Software

03-13-2023 12:30
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


03-13-2023 12:30
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
The latter.
You'll also need your companion app to onforward the data to a server somewhere (which could be on the same phone), because the companion app itself can't store files that are accessible on the phone.
Gondwana Software

03-14-2023 01:15
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

03-14-2023 01:15
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Oh so it's not even possible to access the data directly through the companion app ? Even if it's connected via USB to a computer ? That's annoying 😞
Thank you for your answer !

03-14-2023 01:23
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


03-14-2023 01:23
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
I'm afraid not. The Companion API doesn't even include methods to access the phone's file system.
You can use fetch() to send files from companion to a server. I think there's at least one web site that can capture files for you, or you could write your own server and host it somewhere. (In theory, you could do that on your Windows box, but setting up the required security is very difficult.) Or you could write a server that runs on your phone; that requires less security hurdles.
Gondwana Software
03-14-2023 01:27
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

03-14-2023 01:27
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I see, I'll try to do that then ! Thank you 🙂

