Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The following example shows how to get the node-ID of the CANopen node AppNode:


Code Block
languagecpp
    CPU_INT08U  id;
    :
    id = CONmtGetNodeId (&(AppNode.Nmt));
    if (id == 0) {
        /* error during reading the node-ID */
    } else {
        /* id holds the node ID */
    }
    :