Preparations for selectable MQTT payload format

This commit is contained in:
Gunnar Skjold
2020-02-21 20:51:55 +01:00
parent 90b62638ed
commit 9c8552869c
13 changed files with 558 additions and 438 deletions

16
src/HanToJson.h Normal file
View File

@@ -0,0 +1,16 @@
#ifndef _HANTOJSON_h
#define _HANTOJSON_h
#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#endif
#include <ArduinoJson.h>
#include "AmsData.h"
#include "HwTools.h"
void hanToJson(JsonDocument& json, AmsData& data, HwTools& hw, double temperature);
#endif