integrate CT with ESPMegaIoT

This commit is contained in:
Siwat Sirichai 2024-02-12 16:20:16 +07:00
parent 000c06809c
commit 69b2198342
5 changed files with 17 additions and 2 deletions

View file

@ -52,7 +52,7 @@ void CurrentTransformerIoT::publishReport() {
}
uint8_t CurrentTransformerIoT::getType() {
return CARD_TYPE_CT;
return this->currentTransformerCard->getType();
}
bool CurrentTransformerIoT::processSetEnergyMessage(char* topic, char* payload, uint8_t topic_length) {