Emonhub interfacer for 'new' emontx serial format

The ‘standard’ serial output of the emonTx never worked with emonHub. The emonhub serial interfacer requires data in the format: ``NODEID VAR1 VAR2 VAR3

It’s easy enough to generate that serial output using the following in the emonTx sketch:

Serial.print((int)(realPower1)); Serial.print(' ');   // These for compatibility, but whatever you need if emonHub is configured to suit.
Serial.print((int)(realPower2)); Serial.print(' ');
Serial.print((int)(realPower3)); Serial.print(' ');
Serial.print((int)(realPower4)); Serial.print(' ');
Serial.print((int)(Vrms*100));

If using direct serial most users would want to use the emonTx direct serial sketch which has the RFM disabled.

No, not yet. but that’s a good idea! Fancy having a go? :slight_smile:

The new emonESP compatible format is

name:value name:value

e.g.

ct1:100 ct2:234 temp1:23