Programa Teste para monitoramento de ativos eletricos

Dependencies:   logger

src/classes/Temperatura.h

Committer:
AndersonIctus
Date:
2019-05-04
Revision:
3:213ab6bbf852
Child:
4:bdc930225ade

File content as of revision 3:213ab6bbf852:

#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 = 0;
}
;