makeWebRequest in Communications.SyncDelegate

Hi all,

Are there some limitations when makeWebRequest() is called into a Communications.SyncDelegate class ?

Why I ask : 
I try to call makeWebRequest() to get an URL with WiFi. I followed these instructions :

All is right when I do a makeWebRequest() with a very simple URL, no additionnals headers etc ...

But, when I call with :

  • Params : {args=>[2]}
  • Options : {:responseType=>3, :headers=>{Content-Type=>1, Authorization=>Basic xxxxxxxxxxxxxxxxxxxx}}

I get an UNKNOWN_ERROR (responseCode == 0) but only when the makeWebRequest() is done into my Communications.SyncDelegate class (in others words with the WiFi). If I do exactly the same makeWebRequest with same parameters "normaly" (in others words with BLE), no problem the request is done (responsescode 200).

I get this behavior on my physical watch (FR945). Unfortunately I cannot do the test on the simulator (I will open another thread for it).

Top Replies

All Replies