Sending a constant stream of accelerometerdata

Former Member
Former Member

Hello, 
I'm trying to send a constant stream of accelerometer data to my pc and wanted to ask what's the best way to do so. 
At first, I tried to display the current value of the accelerometer at my Vivoactive Music, to at least now if I get the current data, but it always just displays the current data when I start the app and does not update it constantly. 

Plus I have the problem that I'm not sure what's the best way to send it to my pc. I've seen that you can send HTTP packets but I'm not sure if this is the best way. Is it possible to send UDP packets? 
Sorry, those are probably pretty basic questions but I'm pretty new to Garmin development. 
I would really appreciate your help. 

  • For the display on the watch, I'm thinking you have a device app.

    For those, unlike a watch face, you must do a UI.requestUpdate() for onUpdate() to be called.  You can do it based on a timer, or based on when something happens (new data for example)

    As far as sending data, trying to use makeWebRequest() means the data passes through your phone, so it's not direct to a PC.  UDP isn't available.  It would likely be better if you could batch up the data and send it (like every 30 seconds) than try to stream it.

    What you might want to look at is the new BLE interface in CIQ 3.1, where the pc advertises and the watch connects.  I have no idea if the throughput would be what you need or what it would take on the windows end.