Skip to content

Commit 7d7521a

Browse files
committed
extend config message with vers&lang
1 parent ee698e8 commit 7d7521a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/Cloud4RPi.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ void Cloud4RPi::setDiagVariable(const String& varName, const String& value) {
185185
bool Cloud4RPi::publishConfig() {
186186
DynamicJsonDocument doc(jsonBufferSize);
187187
JsonObject root = doc.to<JsonObject>();
188+
root["v"] = VERSION;
189+
root["l"] = LANG;
188190
JsonArray payload = root.createNestedArray("payload");
189191

190192
for(int i = 0; i < variables->size(); i++) {

src/Cloud4RPi.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ namespace {
2727
const String& MQTT_SERVER = "mq.cloud4rpi.io";
2828
const int MQTT_PORT = 1883;
2929
const String& VERSION = "1.0.3";
30+
const String& LANG = "ard";
3031

3132
const String& VAR_TYPE_BOOL = "bool";
3233
const String& VAR_TYPE_NUMERIC = "numeric";

0 commit comments

Comments
 (0)