15#include "../inc/dht.h"
18 system(
"insmod dht11.ko");
22 system(
"rmmod dht11");
26 int fd0 = open(
"/dev/dht110", O_RDONLY);
30 printf(
"Failed to open DHT11 device driver.\n");
34 if(read(fd0,data,
sizeof(*data)) <= 0)
36 printf(
"Failed to read from device driver.\n");
void remDHT11(void)
Removes the sensor device driver.
int readDHT11(dht11_t *data)
Sample from the sensor.
void initDHT11(void)
Loads the sensor device driver.
DHT11 Data structure CompleteSample: receives all the data from the sensor.