From 1544ec587462b9ba1fe818bc4b3dd7e3eedb4d15 Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Thu, 7 Nov 2024 18:08:24 -0500 Subject: SensorStation: comments --- SensorStation/SensorStation.ino | 3 +++ 1 file changed, 3 insertions(+) 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]; -- cgit v1.2.3