NEW: #1 Mysql support, makefile and readme update, sensor struct update
This commit is contained in:
10
dht22.h
10
dht22.h
@@ -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
|
||||
|
Reference in New Issue
Block a user