for test
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 |
diff -r 8e7ad44f2e4b -r 2be15f3211a7 main.cpp --- 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();