summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2024-11-07 18:08:24 -0500
committerSam Anthony <sam@samanthony.xyz>2024-11-07 18:08:24 -0500
commit1544ec587462b9ba1fe818bc4b3dd7e3eedb4d15 (patch)
tree28e8ed1729276cdc90264afeb4f55e72f6817209
parentbd136517b028ac2f52425d608e3f8704b651b6fc (diff)
downloadsoen422-1544ec587462b9ba1fe818bc4b3dd7e3eedb4d15.zip
SensorStation: comments
-rw-r--r--SensorStation/SensorStation.ino3
1 files changed, 3 insertions, 0 deletions
diff --git a/SensorStation/SensorStation.ino b/SensorStation/SensorStation.ino
index e6dcc14..4d9de86 100644
--- a/SensorStation/SensorStation.ino
+++ b/SensorStation/SensorStation.ino
@@ -50,6 +50,7 @@ loop(void) {
delay(PERIOD);
}
+// Send the measured humidity to the server.
int
send(float humidity) {
if (WiFi.status() != WL_CONNECTED) {
@@ -71,6 +72,7 @@ send(float humidity) {
return 0;
}
+// Format the humidity URL string.
char *
humidityUrl(float humidity) {
static char query[256];
@@ -82,6 +84,7 @@ humidityUrl(float humidity) {
return url(domain, humidityPath, query);
}
+// Format the url string. Query should not include the '?'.
char *
url(const char *domain, const char *path, const char *query) {
static char buf[512];