Condensation Monitor Measure the current environment condition at outside and inside and make caution or warnings related to condensation. Support UART over BLE. It works with nRF Toolbox. 結露モニタ 屋内外の環境情報を計測し、結露に関する警告あるいは注意を出力します。 nRF Toolboxと一緒に動作し、UART機能でBLE経由でメッセージを出力します。 ドキュメント https://developer.mbed.org/users/takafuminaka/notebook/information-about-my-condensation-monitor-for-mbed/

Dependencies:   AQM0802 BME280 HDC1000 VaporCondition mbed BLE_API nRF51822 BLE_Condensation_Monitor

Dependents:   BLE_Condensation_Monitor

Fork of Condensation_Monitor by Nakatafu ☆

Files at this revision

API Documentation at this revision

Comitter:
takafuminaka
Date:
Sun Jun 14 13:50:40 2015 +0000
Parent:
7:7cecec859fe1
Child:
9:75b78697edc6
Commit message:
Fixed some bugs

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sun Jun 14 09:13:40 2015 +0000
+++ b/main.cpp	Sun Jun 14 13:50:40 2015 +0000
@@ -159,7 +159,7 @@
             PC("Humidity Ratio [g/kg] : In %2.2f Out %2.2f \r\n", Inside.Rh(), Outside.Rh());
             Tdp_o = Outside.Tdp();
             Tdp_i = Inside.Tdp();
-            PC("Due Point Temperature [degC] : In %2.2f Out %2.2f \r\n", Tdp_o, Tdp_i);
+            PC("Due Point Temperature [degC] : In %2.2f Out %2.2f \r\n", Tdp_i, Tdp_o);
 
             // print catuions and warnings //
             cautions = 0;
@@ -200,7 +200,7 @@
                         PC("Condensation at %s %s\r\n",sTcur,sWin);
                         sprintf(msg[ii][0],"Condns!!");
                         sprintf(msg[ii][1],"%s%s",ssTcur,ssWin);
-                        sprintf(bmsg[ii],"Cond. at %s",bsWin);
+                        sprintf(bmsg[ii],"Cond. at %s%s",bsTcur,bsWin);
                         cautions ++;
                     } else {
                         PC("%4.1f degC to Condensation at %s%s\r\n", Tcur - Tdp, sTcur, sWin);
@@ -248,16 +248,16 @@
                 break;
 
             case (3):
-                sprintf(msg1,"Po%6.2f",Outside.p);
+                sprintf(msg1,"Po%6.1f",Outside.p);
                 sprintf(msg2,"   [hPa]");
-                BLEC("Prs.Out%6.2fhPa\n",Outside.p);
+                BLEC("Prs.Out%6.1fhPa\n",Outside.p);
                 break;
 
             case (4):
 #if INSIDE_SENSOR == TYPE_BME280 
-                sprintf(msg1,"Pi%6.2f",Inside.p);
+                sprintf(msg1,"Pi%6.1f",Inside.p);
                 sprintf(msg2,"   [hPa]");
-                BLEC("Prs.In %6.2fhPa\n",Inside.p);
+                BLEC("Prs.In %6.1fhPa\n",Inside.p);
 #elif INSIDE_SENSOR == TYPE_HDC1000
                 skip = 1;
 #endif