Code for sensor nodes connected by radio receiver with gateway

Dependencies:   mbed WakeUp coapRadioClient DHT11

tempMeter.cpp

Committer:
Ka_myk
Date:
22 months ago
Revision:
7:2393eb882f82
Parent:
3:4ffffdb5230f

File content as of revision 7:2393eb882f82:

//
// Created by Kamil Mykitiuk on 2019-01-21.
//

#include "tempMeter.h"
#include "dbg.h"

int TempMeter::read() {
    //int s = dht->readData();
    //if (s != DHT11::OK) {
    //    return s * -1;
    //} else {
        return dht->readTemperature();
   // }

}

int TempMeter::getSensorId() {
    return 3;
}

void TempMeter::initialize() {
    DBG("Sensor initialized");
}