Acknowledged
over 1 year ago

makeImageRequest() not working for epix2pro51mm in connectiq-sdk-win-7.2.1-2024-06-25

Communicaitons.makeImageRequest() is not working for epix2pro51mm in connectiq-sdk-win-7.2.1-2024-06-25

when running in the simulator.  It appears that the callback function is never called or perhaps the request was never made.  It is not possible to determine which because  using the view HTTP traffic window, the data traffic remains empty even though there is traffic.

No exception or error is thrown.

The same code works for other devices.  eg. D2 Air, Marq 2 Adventurer, descentmk351mm

  • Here it is:
            Communications.makeImageRequest(url, null /*parameters*/, options, method(:responseCallback));
        function responseCallback(responseCode as Lang.Number,
            data as WatchUi.BitmapResource or Graphics.BitmapReference or Null) as Void {
            if (responseCode == 200) {
                image = data;
                imageCoord=requestCoord;
                errCode=null;
                reqState=3;  // success    
            }
            else {
                reqState=4;  // fail    
                errCode=responseCode;
            }
            reqInProgress=false;
        }

  • Can you provide an example of an imageRequest call with how you are invoking your method callback as well as the callback method?

  • In the previous version of sdk http traffic also doesn't show traffic for makeImageRequest()