Weather · Temperature datafield SDK 3.2

Good morning,

I am developing a new datafield foe EDGE devives with new SDK and I am getting an error on third line :: var current....

    function compute(info)
    {

var currentConditions = Weather.getCurrentConditions();
if (currentConditions != null) { }

This is the message when I execute the simulator. When I compile everithing is OK

Error: Symbol Not Found Error
Details: Failed invoking <symbol>
Stack:
  - compute() at C:\Users\oriol\OneDrive\Garmin IQ Development\EDGE\source\EDGEView.mc:342 0x10000fb2

  • no special code.  I just display the weather in one of my apps in the same way I display it on other devices.

  • Here's compute from a simple DF I posted a while back.

    hasWeather is a Boolean I set elsewhere based on (Toybox has ;Weather) and makeTime and windDir are just my own helper functions that do null checks and conversions if needed

        function compute(info) {
    		var ret="N.A.";
    		if(hasWeather) {
        		var cc=Weather.getCurrentConditions();
        		if(cc!=null) {
        			ret=makeTemp(cc.temperature).format("%0.1f")+degree+" "+windDir(cc.windBearing)+" "+windSpd(cc.windSpeed);
        		} else {
        			ret="No Conditions";
        		}		
    		}
            return ret;
        }