Closed TheRaspyDev closed 9 years ago
nice, going to test
For me it worked. Only a small fix. The code was already there :-)
I also want to create some unit tests for the gateway functionality of the MySensors gateway (board.coffee).
what happens if i set start id to 1 and i already have a node with id1 hardcoded?
And how do i add a device now? Do i have to define the id?
Not tested. From my understanding, the new node will also get nodeId 1. This should be improved. It would also be great to create a device in the config.json when a new node is available. The node presents it's sensors to the gateway.
added change in board.coffee and added "startingNodeId": 100
tried a sensor but it gets sensor ID 0, second node also gets ID 0
Working, had to clear the eeprom :).
New nodes without nodeId are now getting the next available node id from the gateway as defined in config.json (startingNodeId)