Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Development
  3. Node Auto ID not firing requestNodeId()

Node Auto ID not firing requestNodeId()

Scheduled Pinned Locked Moved Development
2 Posts 2 Posters 944 Views 1 Watching
  • 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.
  • E Offline
    E Offline
    elmezie
    wrote on last edited by
    #1

    I start my node with

    gw.begin();
    

    And I would assume that would send out a message to the controller to request an id. But that does not appear to happen.

    MySensors.cpp shows my nc.nodeID as

    Node id (0) : 0
    

    So the code in MySensors.cpp, never fires the requestNodeId() function to retrieve an id since nc.nodeId = 0 and not AUTO.
    How do I get nc.nodeId to equal AUTO. I am not seeing anywhere in the MySensors code where that would get written to EEPROM. Am I doing something wrong? Overlooking something?

    nc.nodeId == AUTO && isValidParent(nc.parentNodeId)) 
    
    		if (_nodeId != AUTO) {
    			// Set static id
    			nc.nodeId = _nodeId;
    			// Save static id in eeprom
    			hw_writeConfig(EEPROM_NODE_ID_ADDRESS, _nodeId);
    		} else if (nc.nodeId == AUTO && isValidParent(nc.parentNodeId)) {
    			// Try to fetch node-id from gateway
    			requestNodeId();
    		}
    
    1 Reply Last reply
    0
    • hekH Offline
      hekH Offline
      hek
      Admin
      wrote on last edited by
      #2

      Do you have something in your eeprom already blocking? Try clearing it using the provided ClearEprom sketch in examples.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      19

      Online

      11.7k

      Users

      11.2k

      Topics

      113.1k

      Posts


      Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • MySensors
      • OpenHardware.io
      • Categories
      • Recent
      • Tags
      • Popular