DHT11 example for WIZwiki-W7500

Dependencies:   DHT mbed

Fork of DHT11-HelloWorld by WIZnet

Revision:
2:4f9613cebdae
Parent:
1:aedc2645d841
--- a/main.cpp	Fri Apr 21 07:02:29 2017 +0000
+++ b/main.cpp	Mon Nov 27 05:24:09 2017 +0000
@@ -2,7 +2,7 @@
 #include "DHT.h"
 
 #define   DHT_DATA_PIN  D4
- 
+ Serial out(USBTX,USBRX);
 DHT sensor(DHT_DATA_PIN, DHT11);                    //DHT(PinName pin, eType DHTtype)
  
 int main()
@@ -13,7 +13,9 @@
     while(1) 
     {
         wait(2.0f);                                 //wait 2 second
-        error = sensor.readData();                  //read error value
+        error = sensor.readData(); 
+       // c   = sensor.ReadTemperature(CELCIUS);                 //read error value
+      //   out.printf(" Celcius: %4.2f",c);
         if (error == 0)                             //case: no error 
         {
             c   = sensor.ReadTemperature(CELCIUS);