I want to read my pulse data and write to a json-database with a REST API.
Does anyone have an example on how this can be done?
Something with makeWebRequset? Do I need something more?
I want to read my pulse data and write to a json-database with a REST API.
Does anyone have an example on how this can be done?
Something with makeWebRequset? Do I need something more?
a makeWebRequest can only be done in a background service with a watch face, so once ever 5 minutes at most.
You'll probably need to use https and not http.
In a device app or widget, you'll probably want to have only one active request at a time, so do a makeWebRequest, wait for the callback to do the next request, and so on.
Here's a post with the code. The whole thread is about background services.
Also, check out the Connect IQ FAQ. It's got more on backgrounding as well as comm