A library for the use of DHT11, a temperature and humidity sensor
Fork of DHT11 by
Diff: DHT11.h
- Revision:
- 12:8ff29b43e3f9
- Parent:
- 10:f0d789f49df7
--- a/DHT11.h Thu Sep 25 14:13:10 2014 +0000 +++ b/DHT11.h Wed Feb 18 15:01:29 2015 +0000 @@ -31,7 +31,7 @@ * { * int s; * s = d.readData(); - * if (s != DHT11::OK) { + * if (s != DHT11::DHT_OK) { * printf("Error!\r\n"); * } * else { @@ -52,7 +52,7 @@ /** Reading the data from the DHT11 * @return Error code - * 0: OK. + * 0: DHT_OK. (reviced by Taiyo Mineo) * 1: Reading the data too often. * 2: 1-wire bus is busy. * 3: DHT11 does not respond. @@ -75,7 +75,7 @@ int readTemperature(void); enum ErrorDHT11 { - OK = 0, + DHT_OK = 0, // reviced by Taiyo Mineo because namespace collusion with http. READ_TOO_OFTEN = 1, BUS_BUSY = 2, NOT_PRESENT = 3,