Browse Source

Add Domoticz 'Voltage' and 'Current' support for EMON

fastled
Toni Arte 7 years ago
parent
commit
62311440e8
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      code/espurna/emon.ino

+ 4
- 0
code/espurna/emon.ino View File

@ -171,6 +171,10 @@ void powerMonitorLoop() {
char buffer[20];
snprintf(buffer, 20, "%s;%s", power, e);
domoticzSend("dczPowIdx", 0, buffer);
snprintf(buffer, 20, "%d", voltage);
domoticzSend("dczVoltIdx", 0, buffer);
snprintf(buffer, 20, "%s", String(current).c_str());
domoticzSend("dczCurrentIdx", 0, buffer);
}
#endif


Loading…
Cancel
Save