DHT11

Dependencies:   mbed mbed-rtos SDFileSystem EthernetInterface DHT11

Revision:
3:b2eae813c2e1
Parent:
2:44f331aea307
--- a/main.cpp	Sat Nov 24 22:20:03 2018 +0000
+++ b/main.cpp	Mon Dec 03 19:06:30 2018 +0000
@@ -36,7 +36,7 @@
 void initializeEthernet(void)
 {
     EthernetInterface eth;
-    const char *ip = "192.168.1.2";
+    const char *ip = "192.168.1.3";
     const char *mask = "255.255.255.0";
     const char *gateway = "192.168.1.1";
     if(!eth.init(ip,mask,gateway))
@@ -66,6 +66,7 @@
         while(!file.eof())
         {
             getline(file,file_content[cnt]);
+            pc.printf("cnt: %i \n \r", cnt);
             cnt++;           
         }
         file.close();
@@ -86,8 +87,11 @@
 
 int main() 
 {
+
     initializeSerialPC();
-    readHTMLCode();   
-    initializeEthernet();
+    //DHT11_read(); 
+    readHTMLCode();  
+    initializeEthernet(); 
+
     while(1);
 }