Jest klasa Pluviometer, która ma zdefiniowana zmienną
Kod: Zaznacz cały
bool reset
Kod: Zaznacz cały
class Pluviometer: public Element {
public:
Pluviometer(int pinRain, double rain_factory);
static double _currentRainCount;
friend void serviceInterruptRain();
virtual double getValue() ;
bool reset;
void iterateAlways();
void onInit();
protected:
Channel *getChannel() {
return &channel;
}
Channel channel;
int _pinRain;
double _rain_factory;
unsigned long lastReadTime;
};
Kod: Zaznacz cały
Supla::Sensor::Pluviometer *Pluvio = new Supla::Sensor::Pluviometer(ConfigESP->getGpio(FUNCTION_PLUVIOMETER),ConfigManager->get(KEY_PLUVIOMETER_FACTORY)->getValueDouble());
Pluvio->reset=0;
Niestety gdy w sekcji "loop" wstawię
Kod: Zaznacz cały
Pluvio->reset=1;
Kod: Zaznacz cały
'Pluvio' was not declared in this scope
Jak to ugryść ? Szukam w necie ale nie potrafię nic znaleść