Node id is a string and must be parsed. The getByte does not parse any more.
This commit is contained in:
@@ -332,7 +332,7 @@ boolean MySensor::process() {
|
|||||||
for (;;);
|
for (;;);
|
||||||
} else if (type == I_ID_RESPONSE) {
|
} else if (type == I_ID_RESPONSE) {
|
||||||
if (nc.nodeId == AUTO) {
|
if (nc.nodeId == AUTO) {
|
||||||
nc.nodeId = msg.getByte();
|
nc.nodeId = msg.getInt();
|
||||||
// Write id to EEPROM
|
// Write id to EEPROM
|
||||||
if (nc.nodeId == AUTO) {
|
if (nc.nodeId == AUTO) {
|
||||||
// sensor net gateway will return max id if all sensor id are taken
|
// sensor net gateway will return max id if all sensor id are taken
|
||||||
|
|||||||
Reference in New Issue
Block a user