Programa Teste para monitoramento de ativos eletricos

Dependencies:   logger

src/classes/Temperatura.h

Committer:
AndersonIctus (anderson.ictus@gmail.com)
Date:
2019-05-14
Revision:
5:1b0cd3a1f3c7
Parent:
4:bdc930225ade

File content as of revision 5:1b0cd3a1f3c7:

#include "Logger.h"

/// Sensor de temperatura
class Temperatura {
    public: 
        /// Retorna a leitura da Temperatura
        double verificaTemperatura() {
            _status = 27.5;
            _l->log("Retorna a temperatura ... 27.5");

            return _status;
        }

        void setLog(Logger * l) {
            _l = l;
        }

    private:
        Logger* _l;
        double _status;
}
;