Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed STM32F4_RNG DHT BMP180
Revision 1:2be15f3211a7, committed 2020-05-13
- Comitter:
- zeroking5
- Date:
- Wed May 13 06:03:38 2020 +0000
- Parent:
- 0:8e7ad44f2e4b
- Commit message:
- wetherMeter first commit
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Mon Apr 27 02:36:51 2020 +0000
+++ b/main.cpp Wed May 13 06:03:38 2020 +0000
@@ -47,7 +47,7 @@
{
reset=0; //hardware reset for 8266
pc.baud(115200); // set what you want here depending on your terminal program speed
- pc.printf("\f\n\r-------------ESP8266 Hardware Reset-------------\n\r");
+ pc.printf("\f\n\r-------------ESP8266 Hardware Rese444t-------------\n\r");
wait(0.5);
reset=1;
timeout=2;
@@ -105,6 +105,10 @@
t.reset();
}
}
+ buf[mycount]=0;
+ pc.printf("At respon:%s\r\n",buf);
+
+
}
void HTTPConfig()
@@ -195,7 +199,7 @@
ftemp = devDht.ReadTemperature(CELCIUS);
pc.printf("temp:%4.1f\thumi:%4.1f\n",ftemp,fhumi);
}
- fray = analog_value.read();
+ fray = analog_value.read()*3300;
bmp180.normalize();
fpress = bmp180.read_pressure();