Milestone 1
All function implemented in OOP except WebServer Function. Most missing documentation and comments
This commit is contained in:
parent
e1f0fd5651
commit
d62ffa3606
7 changed files with 10 additions and 29 deletions
|
@ -60,6 +60,9 @@ void ClimateIoT::publishClimate() {
|
|||
}
|
||||
|
||||
void ClimateIoT::publishRoomTemperature() {
|
||||
if (this->card->getSensorType() == AC_SENSOR_TYPE_NONE ) {
|
||||
return;
|
||||
}
|
||||
char payload[5];
|
||||
itoa(this->card->getRoomTemperature(), payload, 10);
|
||||
this->publishRelative(AC_ROOM_TEMPERATURE_REPORT_TOPIC, payload);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue