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

    how to reassign a node id?

    Scheduled Pinned Locked Moved General Discussion
    5 Posts 3 Posters 1.0k Views 2 Watching
    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 Offline
      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

      jkandasaJ 1 Reply Last reply Reply Quote 0
      • jkandasaJ Offline
        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 Offline
          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?

          jkandasaJ 1 Reply Last reply Reply Quote 0
          • jkandasaJ Offline
            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 Offline
              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

              587

              Users

              529

              Topics

              3.4k

              Posts
              Copyright © 2015-2025 MyController.org | Contributors | Localization