• Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    how to reassign a node id?

    General Discussion
    3
    5
    806
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dirkc last edited by

      How can I assign another node id to an already existing node?
      When I simply change the node id in the nodes settings, it has no impact even if I reboot the node. Erasing the configuration results in an OTA with a new node id (even if I set "#define NODE_ID 99")
      Any ideas?
      Thanks in advance

      jkandasa 1 Reply Last reply Reply Quote 0
      • jkandasa
        jkandasa @dirkc last edited by

        @dirkc In the latest version of MySensors, you can use as follows,

        #define MY_NODE_ID 0x02
        #include <MySensors.h>
        

        This line should be before #include <MySensors.h>

        D 1 Reply Last reply Reply Quote 0
        • D
          dirkc @jkandasa last edited by dirkc

          @jkandasa I did exactly this, and the gateway assigned a different node id.
          I use the newest versions of MySensors (2.2), compiled all nodes and Gateway with new versions.
          Can I change the node id afterwards with MyController?

          jkandasa 1 Reply Last reply Reply Quote 0
          • jkandasa
            jkandasa @dirkc last edited by

            @dirkc Yes, you can change by editing node od directly. But, Seems already you tried this step. Can you try with MySensors forum? This seems like more related to MySensors lib. Kindly report back your solution.

            1 Reply Last reply Reply Quote 0
            • T
              Tag MOD last edited by

              Hi!,

              The define should work, have you tried to add as a decimal number instead of hex?

              maybe try clearing the eeprom with the example sketch, then add the line below to your sketch.

              #define MY_NODE_ID 2
              
              1 Reply Last reply Reply Quote 0
              • First post
                Last post

              0
              Online

              638
              Users

              495
              Topics

              3.2k
              Posts

              Copyright © 2015-2022 MyController.org | Contributors | Localization