Node Auto ID not firing requestNodeId()
-
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(); }
-
Do you have something in your eeprom already blocking? Try clearing it using the provided ClearEprom sketch in examples.
1 out of 2
Suggested Topics
-
Arduino Celebrates 10 years (Malmö/Sweden)
Announcements • 29 Mar 2014, 17:08 • hek 29 Mar 2014, 17:08 -
PJON and Minicore not working
Development • 21 Mar 2025, 19:51 • Trand 21 Mar 2025, 19:51 -
Adding Listen only device to my system.
Development • 26 Feb 2025, 00:39 • dpcons 26 Feb 2025, 06:26 -
MQTT-Help me understand about the MQTT Gateway.
Development • 2 Mar 2025, 01:44 • dpcons 12 Mar 2025, 23:39 -
Saving last known good state, but not in EEPROM
Development • 30 Jan 2024, 18:46 • OldSurferDude 15 Jan 2025, 08:51 -
Home Assistant/MySensors quirks
Development • 17 Mar 2025, 02:35 • OldSurferDude 17 Mar 2025, 02:35