-
- teleinfo.process();
- if(teleinfo.available()){
- long I1 = teleinfo.getLongVal("IINST1");
- long I2 = teleinfo.getLongVal("IINST2");
- long I3 = teleinfo.getLongVal("IINST3");
- long PAPP = teleinfo.getLongVal("PAPP");
- long BASE = teleinfo.getLongVal("BASE");
- sendToInfluxDB("teleinfo,city="+city+",phase=1", "IINST", String(I1));
- sendToInfluxDB("teleinfo,city="+city+",phase=2", "IINST", String(I2));
- sendToInfluxDB("teleinfo,city="+city+",phase=3", "IINST", String(I3));
- sendToInfluxDB("teleinfo,city="+city, "PAPP", String(PAPP));
- sendToInfluxDB("teleinfo,city="+city, "BASE", String(BASE));
- teleinfo.resetAvailable();