diff options
Diffstat (limited to 'SensorStation/SensorStation.ino')
| -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]; |