Hi,
I created a simple makeWebRequest and it works by simulator.
How I should set the device (fenix 3HR) to work here?
Actually doesn't work.
Thanks
Hi,
I created a simple makeWebRequest and it works by simulator.
How I should set the device (fenix 3HR) to work here?
Actually doesn't work.
Thanks
I'm using this function:
function makeRequest() {
var url = "url"; // set the url
var params = { // set the parameters
"definedParams" => "10"
};
var options = { // set the options
:method => Communications.HTTP_REQUEST_METHOD_GET, // set HTTP method
:headers => { // set headers
"Content-Type" => Communications.REQUEST_CONTENT_TYPE_URL_ENCODED},
// set response type
:responseType => Communications.HTTP_RESPONSE_CONTENT_TYPE_URL_ENCODED
};
var responseCallback = method(:onReceive); // set responseCallback to
// onReceive() method
// Make the Communications.makeWebRequest() call
Communications.makeWebRequest(url, params, options, method(:onReceive));
}
Called by other function.
I don't have a log.
Simulator works well.
EDIT: the url is a simple web page that insert a new row in a table. So, if I call the function in the simulator, the new row is created; if I use the app by my Garmin f3 the row doesn’t create.
jim_m_58, thanks
Hi,
Where do you use it ?
Is it for a widget ? An app ?