beta-ready CT code
This commit is contained in:
parent
69b2198342
commit
becdf35a27
|
@ -61,3 +61,6 @@ bool CurrentTransformerIoT::processSetEnergyMessage(char* topic, char* payload,
|
|||
return true;
|
||||
}
|
||||
|
||||
void CurrentTransformerIoT::handleCTCallback(float current, double energy) {
|
||||
this->publishReport();
|
||||
}
|
|
@ -38,7 +38,7 @@ float adc2current(uint16_t adcValue)
|
|||
}
|
||||
AnalogCard analogCard = AnalogCard();
|
||||
float voltage = 220.0;
|
||||
CurrentTransformer ct = CurrentTransformer(&analogCard, 0, &voltage, adc2current, 1000);
|
||||
CurrentTransformerCard ct = CurrentTransformerCard(&analogCard, 0, &voltage, adc2current, 1000);
|
||||
#endif
|
||||
|
||||
#ifdef CLIMATE_CARD_ENABLE
|
||||
|
|
Loading…
Reference in New Issue