NEW: #1 Mysql support, makefile and readme update, sensor struct update

This commit is contained in:
2017-01-28 13:56:47 +01:00
parent 2167638d2b
commit c8182dafec
7 changed files with 104 additions and 10 deletions

10
dht22.h
View File

@@ -1,9 +1,15 @@
#ifndef dht22_H
#define dht22_H
#include <stdint.h>
typedef struct {
int pin;
float humidity;
float temperature;
} sensor;
void getData(int pin, sensor *s);
void getData(sensor *s);
//static int read_dht22_dat(int pin, sensor *s);
//static uint8_t sizecvt(const int read);
#endif