pb66
(Paul)
19
Yes it can work but since the serial port is for one-to-one comm it is not wise to allow conflicts to “sort themselves out” especially when debugging. It may have been such a conflict that caused a stray lock file.
I can now see a formatting issue that should look like this
6 1 2 3 4 107
6 1 2 3 4 107
6 1 2 3 4 107
6 1 2 3 4 107
the line ending is missing. Change your test sketch to
const int nodeID = 6;
void setup() {
Serial.begin(9600);
}
void loop() {
int a = 1;
int b = 2;
int c = 3;
int d = 4;
int e = 107;
Serial.print(nodeID); Serial.print(' ');
Serial.print(a); Serial.print(" "); // These for compatibilit$
Serial.print(b); Serial.print(" ");
Serial.print(c); Serial.print(" ");
Serial.print(d); Serial.print(" ");
Serial.print(e); Serial.println();
delay(1000);
}
the println will add the correct line ending and that will also help emonhub as it is waiting for that line ending to signify the end of the payload.