simpledatafield activity.info

Former Member
Former Member
hello,
i want to create a simple datafield for my edge 820
minSdkVersion="2.1.1"

for example bearing:
-----------------------
i get always an error:
Could not find symbol bearing.
Symbol Not Found Error

this happens for all with: since 1.2.10

please help

thx
  • Not all features in a specified version of the SDK are available on all devices or device firmware versions. The device firmware must have support for the feature for it to work. Does your 820 have firmware that supports the 1.2.10 SDK?

    Additionally, you can avoid the crash by checking for the field before accessing it with (info has :bearing).

    Travis
  • Former Member
    Former Member over 8 years ago
    Not all features in a specified version of the SDK are available on all devices or device firmware versions. The device firmware must have support for the feature for it to work. Does your 820 have firmware that supports the 1.2.10 SDK?

    Additionally, you can avoid the crash by checking for the field before accessing it with (info has :bearing).

    Travis


    it should be, edge 820 support connect iq 2.1
  • As I said above... just because the device can support ConnectIQ X.Y.Z doesn't mean the firmware you have installed does. You should be able to find the version of ConnectIQ supported with the firmware by looking in the device menus (usually under System > About). Please verify that your device firmware supports the minimum SDK version for the feature.

    It is also possible that the device firmware supports the minimum ConnectIQ version but the feature is not implemented (by design) or broken (due to a bug). In the former case, there is not much that you can do. Otherwise, a bug can be filed to get the issue resolved. If you can confirm that you have up-to-date firmware, then we can move on to figuring out which of the other possibilities we are looking at.

    I have an edge_1000 with the latest firmware that I can test with. If I have some time this evening I'll see if I can reproduce your problem.
  • Former Member
    Former Member over 8 years ago
    thx a lot
  • I tested on an edge_1000 with the latest firmware and the data is not available. i.e., the following code returns not supported (even when navigating a course)...

    function compute(info) {

    if (info == null) {
    return "null info";
    }
    else if (! (info has :heading)) {
    return "not supported";
    }
    else if (info.heading == null) {
    return "null heading";
    }
    else {
    return info.heading.toString();
    }
    }


    I'd like to think that this is an oversight, but it is possible that this attribute, and possibly a few others, are only available on some devices.

    Travis
  • Former Member
    Former Member over 8 years ago
    thx

    I tested on an edge_1000 with the latest firmware and the data is not available. i.e., the following code returns not supported (even when navigating a course)...

    function compute(info) {

    if (info == null) {
    return "null info";
    }
    else if (! (info has :heading)) {
    return "not supported";
    }
    else if (info.heading == null) {
    return "null heading";
    }
    else {
    return info.heading.toString();
    }
    }


    I'd like to think that this is an oversight, but it is possible that this attribute, and possibly a few others, are only available on some devices.

    Travis


    thanx