• Categories
  • Recent
  • Tags
  • Popular
  • Register
  • Login
  • 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 4 Feb 2018, 12:16

    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

    J 1 Reply Last reply 4 Feb 2018, 12:22 Reply Quote 0
    • J Offline
      jkandasa @dirkc
      last edited by 4 Feb 2018, 12:22

      @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 4 Feb 2018, 12:37 Reply Quote 0
      • D Offline
        dirkc @jkandasa
        last edited by dirkc 2 Apr 2018, 18:08 4 Feb 2018, 12:37

        @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?

        J 1 Reply Last reply 4 Feb 2018, 13:20 Reply Quote 0
        • J Offline
          jkandasa @dirkc
          last edited by 4 Feb 2018, 13:20

          @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 4 Feb 2018, 17:51

            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
            1 out of 5
            • First post
              1/5
              Last post

            0

            Online

            586

            Users

            529

            Topics

            3.4k

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