Skip to content

Commit 3142017

Browse files
committed
change info field "soil-moisture" to "soilMoisture"
1 parent a6ce266 commit 3142017

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Topic: wateringsystem/`{device ID}`/out/`{command}`
6161
| field | description | type |
6262
| ------------------- | --------------------------------------------------------------------- | ------ |
6363
| version | version number of module firmware | string |
64-
| soil-moisture | analog value of soil-moisture sensor | number |
64+
| soilMoisture | analog value of soil-moisture sensor | number |
6565
| system.deviceId | Unique ID of the device. Will used also in MQTT topics. | string |
6666
| system.freeHeap | free heap memory of CPU | number |
6767
| energy.shuntVoltage | voltage between V- and V+ (in mV) | number |

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ void sendInfo()
125125
DynamicJsonDocument doc(1024);
126126
doc["version"] = version;
127127

128-
doc["soil-moisture"] = loadSoilMoistureValue();
128+
doc["soilMoisture"] = loadSoilMoistureValue();
129129

130130
// system
131131
JsonObject system = doc.createNestedObject("system");

0 commit comments

Comments
 (0)