Only show temp if sensor is attached. Added common functions to get temp and vcc

This commit is contained in:
Gunnar Skjold
2020-02-14 21:48:03 +01:00
parent f484f3eb0e
commit eff00f1fe0
7 changed files with 118 additions and 49 deletions

View File

@@ -4,6 +4,7 @@
#include <ArduinoJson.h>
#include <MQTT.h>
#include "AmsConfiguration.h"
#include "HwTools.h"
#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
@@ -28,6 +29,7 @@ public:
void setJson(StaticJsonDocument<1024> json);
private:
HwTools hw;
AmsConfiguration* config;
Stream* debugger;
MQTTClient* mqtt;