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: GPSLibrary GSM mbed-modifed Storage_Library Temp_Library Wakeup pH_Sensor
Diff: main.cpp
- Revision:
- 9:b6e9751fbcba
- Parent:
- 8:b607768bfa0a
- Child:
- 10:01bbf4f1c250
--- a/main.cpp Mon Nov 09 19:01:35 2015 +0000
+++ b/main.cpp Mon Nov 09 20:00:42 2015 +0000
@@ -201,6 +201,26 @@
return true;
}
+
+// In the final version of this code:
+// We wake up ten times an hour to record information from our sensors.
+// but we wait until we have accumulated 240 measurements before we
+// start attempting to send away all our data. Once we successfully send
+// our information, we clear our memory and begin from the start.
+
+// TODO: Sleep mode. How does the Nucleo enter / exit sleep mode?
+// How do we power on / power off the other devices:
+// - GPS?
+// use the EN pin on the GPS
+// - pH sensor?
+// There's a sleep command
+// - Temperature sensor?
+//
+// - GSM?
+// The enable pin is modified by changeGSMPowerStat();
+// TODO: Web communication
+// - write server
+
int main()
{
setup();