03-13-2023 08:42
03-13-2023 08:42
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.
03-13-2023 12:30
03-13-2023 12:30
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.
03-13-2023 12:30
03-13-2023 12:30
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.
03-14-2023 01:15
03-14-2023 01:15
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
03-14-2023 01:23
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.
03-14-2023 01:27
03-14-2023 01:27
I see, I'll try to do that then ! Thank you 🙂