-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
7 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* File Created: Tuesday, 19th November 2019 17:04:12 | ||
* Author: Caroline ([email protected]) | ||
* ----- | ||
* Last Modified: Wednesday June 17th 2020 10:15:43 | ||
* Last Modified: Friday June 19th 2020 14:57:31 | ||
* Modified By: Caroline | ||
* ----- | ||
* License: MIT License | ||
|
@@ -39,7 +39,6 @@ const size_t JSON_CAPACITY = JSON_OBJECT_SIZE(2) + CONFIG_MAX_FILE_SIZE; | |
#define DATA_MAX_AGE (DATA_MAX_AGE_HOURS * TASK_HOUR) | ||
#define DATA_MAX_SIZE (DATA_MAX_AGE / CHECK_SENSOR_PERIOD) | ||
|
||
#define DEBUG | ||
#ifdef DEBUG | ||
#define BAUDRATE 115200 | ||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,15 +4,15 @@ | |
* File Created: Tuesday, 24th March 2020 18:07:40 | ||
* Author: Caroline ([email protected]) | ||
* ----- | ||
* Last Modified: Wednesday March 25th 2020 11:58:40 | ||
* Last Modified: Friday June 19th 2020 14:56:44 | ||
* Modified By: Caroline | ||
* ----- | ||
* License: MIT License | ||
*/ | ||
|
||
#include "moduleservice.h" | ||
void ModuleService::GetModuleInfo(char* info) { | ||
sprintf(info, "{\"moduleName\": \"%s\", \"ipAddress\": \"%s\", \"ambientTemperature\": \"%.1f\"}", WiFi.macAddress().c_str(), WiFi.localIP().toString().c_str(), 25.4); | ||
sprintf(info, "{\"moduleName\": \"%s\", \"ipAddress\": \"%s\", \"version\": \"%s\"}", WiFi.macAddress().c_str(), WiFi.localIP().toString().c_str(), VERSION); | ||
} | ||
|
||
ModuleService::ModuleService() { | ||
|