From 2efcbce437f82f160073434ab19bf3a907f425a9 Mon Sep 17 00:00:00 2001 From: structix Date: Fri, 25 Aug 2017 23:49:31 +0200 Subject: [PATCH] Added restcurl, calculate bugfixes --- RaspberryPi/calculate.h | 9 +++++---- RaspberryPi/restcurl.c | 1 + RaspberryPi/restcurl.h | 8 ++++++++ 3 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 RaspberryPi/restcurl.c create mode 100644 RaspberryPi/restcurl.h diff --git a/RaspberryPi/calculate.h b/RaspberryPi/calculate.h index dfb49ec..14dc441 100644 --- a/RaspberryPi/calculate.h +++ b/RaspberryPi/calculate.h @@ -1,8 +1,9 @@ -#ifndef dht22_H -#define dht22_H +#ifndef calculate_H +#define calculate_H #include "dht22.h" -double absoluteHumidity(sensor *sensor); +float absoluteHumidity(sensor *sensor); +int compareSensors(sensor *inside, sensor *outside); -#endif \ No newline at end of file +#endif diff --git a/RaspberryPi/restcurl.c b/RaspberryPi/restcurl.c new file mode 100644 index 0000000..8d1c8b6 --- /dev/null +++ b/RaspberryPi/restcurl.c @@ -0,0 +1 @@ + diff --git a/RaspberryPi/restcurl.h b/RaspberryPi/restcurl.h new file mode 100644 index 0000000..0993e84 --- /dev/null +++ b/RaspberryPi/restcurl.h @@ -0,0 +1,8 @@ +#ifndef restcurl_H +#define restcurl_H + +#include "dht22.h" + +//define functions here + +#endif