[Solved] Problem updating from 2.0 to 2.1



  • Hello,

    I've some problems updating from 2.0 to 2.1.
    In my examples, I'm sending the node-id and the distance to my controller, to check which path is using my node.
    Here the part of the code:

    parentNode = _nc.parentNodeId;
    distance = _nc.distance;
    Serial.print(F("Node-id: "));
    Serial.println(MY_NODE_ID);
    Serial.print(F("Parent node id: "));
    Serial.println(parentNode);
    Serial.print(F("Distance Node00: "));
    Serial.println(distance);
    

    Now I'm getting this error:

    error: '_nc' was not declared in this scope
    

    How to get those values now?

    Thanks

    Simon


  • Admin

    @xefil

    nodeId: getNodeId()
    parentNode: getParentNodeId()
    distance: getDistanceGW()



  • Thank you!!

    Simon


Log in to reply
 

405
Online

6.9k
Users

7.8k
Topics

82.8k
Posts

Looks like your connection to MySensors Forum was lost, please wait while we try to reconnect.