ABHISHEK GUPTA / Mbed 2 deprecated Smart_Home_sensors

Dependencies:   mbed MQ2 FXOS8700Q DHT TextLCD ESP8266

Files at this revision

API Documentation at this revision

Comitter:
siddharthp
Date:
Tue Nov 29 14:01:15 2016 +0000
Parent:
0:da7e87322045
Child:
2:9c7b37890692
Commit message:
DHT11 temperature and Humidity sensor

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Tue Nov 29 13:56:18 2016 +0000
+++ b/main.cpp	Tue Nov 29 14:01:15 2016 +0000
@@ -25,15 +25,14 @@
     pc.printf("Getting IP\r\n");    //get IP addresss from the connected AP
     wifi.GetIP(rcv);    //receive an IP address from the AP
     pc.printf("%s\n", rcv);
-    wait(5); // Delay 5 sec to give the pir time to get snapshut of the surrounding
     while (1) 
     {
         pc.printf("PLEASE STAY AWAY\r\n");
         pc.printf("Sending WiFi information\n");
         wifi_send();
-        RED=1; // when the motion detected turn of the on board red led
+        RED=1;
         wait(2.0f);
-        RED=1;
+        RED=0;
         wait(1.5f);
     }    
 }