diff --git a/main/main.ino b/main/main.ino index 46dd76beb7..e174f51e6f 100644 --- a/main/main.ino +++ b/main/main.ino @@ -255,8 +255,9 @@ void pub(char* topicori, JsonObject& data) { #ifdef valueAsASubject # ifdef ZgatewayPilight String value = data["value"]; + String protocol = data["protocol"]; if (value != 0) { - topic = topic + "/" + value; + topic = topic + "/" + protocol + "/" + value; } # else SIGNAL_SIZE_UL_ULL value = data["value"];