Files
HumidityPi/RaspberryPi/dht22.h

29 lines
410 B
C

#ifndef dht22_H
#define dht22_H
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
int pin;
int node_id;
char ip[50]; //IP or name can be used
int isoutside;
float humidity;
float temperature;
} sensor;
void getData(sensor *s);
//static int read_dht22_dat(int pin, sensor *s);
//static uint8_t sizecvt(const int read);
#ifdef __cplusplus
}
#endif
#endif