19#ifndef SRC_SUPLA_PV_AFORE_H_
20#define SRC_SUPLA_PV_AFORE_H_
23#include <supla/sensor/one_phase_electricity_meter.h>
24#include <supla/network/client.h>
26#define LOGIN_AND_PASSOWORD_MAX_LENGTH 100
32 Afore(
IPAddress ip,
int port,
const char *loginAndPassword);
33 void readValuesFromDevice();
41 char loginAndPassword[LOGIN_AND_PASSOWORD_MAX_LENGTH];
43 unsigned _supla_int64_t totalGeneratedEnergy;
44 _supla_int_t currentPower;
50 bool dataFetchInProgress;
51 uint32_t connectionTimeoutMs;
Definition ip_address.h:30
bool iterateConnected()
Method called on each SuplaDevice iteration when device is connected and registered to Supla server o...
Definition afore.cpp:119
void iterateAlways()
Method called on each SuplaDevice iteration.
Definition afore.cpp:51
Definition one_phase_electricity_meter.h:26