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: HP206C mbed HMC5883L DHT DS1820
Diff: main.cpp
- Revision:
- 77:67faccef7f14
- Parent:
- 76:04941d128fff
- Child:
- 78:ab7595f2133b
--- a/main.cpp Mon Oct 15 07:57:53 2018 +0000
+++ b/main.cpp Tue Dec 04 13:12:52 2018 +0000
@@ -41,7 +41,7 @@
else{
solT = temp;
}
- solH = getSoilHumidity( humidSensor, airValue,waterValue, false);
+ solH = getSoilHumidity( humidSensor, airValue,waterValue, true);
msg = genMessage( solH, airH, solT, airT, P,magXYZ);
// Display
@@ -53,8 +53,12 @@
pc.printf("Mag : X:%d ; Y:%d ; Z:%d\n\r", magXYZ[0], magXYZ[1], magXYZ[2]);
pc.printf("Pression : %u Pa\r\n", P);
pc.printf("AT$SF=%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x\r\n", msg[0], msg[1], msg[2], msg[3], msg[4], msg[5], msg[6], msg[7], msg[8], msg[9], msg[10], msg[11]);
- wisol.printf("AT$SF=%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x\r\n", msg[0], msg[1], msg[2], msg[3], msg[4], msg[5], msg[6], msg[7], msg[8], msg[9], msg[10], msg[11]);
+ //wisol.printf("AT$SF=%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x\r\n", msg[0], msg[1], msg[2], msg[3], msg[4], msg[5], msg[6], msg[7], msg[8], msg[9], msg[10], msg[11]);
pc.printf("\n\r");
- wait(WAIT_TIME - 7);
+ free(msg);
+ msg = NULL;
+ wait(3);
+ //wait(WAIT_TIME - 7);
+ //comment
}
}
