D2 Bravo Titanium and SDK 2.1.2 compatibility

Former Member
Former Member
Hi all,
I am currently trying to write my first 'hello world' application for my D2 Bravo Titanium watch. It's a kind of very simple App that has only one purpose : open an URL which in turn will start an action on a connected device.

So I downloaded the Connect IQ 2.1.2 SDK from garmin's website, configured eclipse to use it and am now able to test my first app in the simulator.
I used one of the provided samples (WebRequest) as a starting point for my project. So far I managed to test it successfuly from within the simulator, but as soon as I try the application on the watch, I rapidly get an error symbol IQ! message and nothing happens...

The error log file generated on the watch says :
ERROR: Symbol Not Found Error
DETAILS: Could not find symbol makeWebRequest.
STORE_ID: 00000000000000000000000000000000
.....


Here an extract of the code :

notify.invoke("Executing\nRequest");

Comm.makeWebRequest(
"hd1.freebox.fr/.../remote_control",
{
"code" => "12341234",
"key" => "vol_dec",
"long" => "true"
},
{
//"Content-Type" => Comm.REQUEST_CONTENT_TYPE_URL_ENCODED
},
method(:onReceive)
);



So my question : is it possible to use the Communication.makeWebRequest on the D2 Bravo Titanium watch ?
If yes are there some special keys to add or modify in the manifest.xml file of the project, or configuration in eclipse to set ?
Thx
  • The D2's tend to not have updated firmware as often as other "fenix" like devices (maybe because it's a "pilot's watch"?)

    The D2 has a 1.2.x VM (see http://developer.garmin.com/index.php/blog/post/connect-iq-2-the-biker-has-arrived for what's on which device) and makeWebRequest() is new as of 1.3.0 (see the api documentation).

    can you do what you are trying to do with makeJsonRequest()? It's marked as depreciated, but that just happened and it will still be around for a while.
  • Former Member
    Former Member over 8 years ago
    It is working like a charm with makeJsonRequest() ! Thanx a lot, it was driving me nut ... ;)
    I guess I Have been fooled by the fact that the function it is tagged as being depreciated and the watch quite new !
    Hope the Garmin guys will update this quickly ...
  • I still use makeJsonRequest() in my apps, as I support some devices with 1.2.x, some with 1.3.x, and some with 2.1.x

    It was just depreciated and will be around until something like the 3.x.y SDK, the way I understand it.