diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2024-11-07 18:08:24 -0500 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2024-11-07 18:08:24 -0500 |
| commit | 1544ec587462b9ba1fe818bc4b3dd7e3eedb4d15 (patch) | |
| tree | 28e8ed1729276cdc90264afeb4f55e72f6817209 | |
| parent | bd136517b028ac2f52425d608e3f8704b651b6fc (diff) | |
| download | soen422-1544ec587462b9ba1fe818bc4b3dd7e3eedb4d15.zip | |
SensorStation: comments
| -rw-r--r-- | SensorStation/SensorStation.ino | 3 |
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]; |